This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[SOLVED] NVault and Data Loss


Post New Thread Reply   
 
Thread Tools Display Modes
Depresie
Veteran Member
Join Date: Nov 2013
Old 09-13-2015 , 19:57   Re: [HELP] NVault and Data Loss
Reply With Quote #11

i dont lol, i was thinking that after the data is loaded, the data withing the vault is deleted
anyway thx for the help, im sure this is gonna help and many other people, i have two friends who had the same problem and couldn't find a solution
you are of a great help as always
Depresie is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 09-15-2015 , 13:10   Re: [HELP] NVault and Data Loss
Reply With Quote #12

Quote:
Originally Posted by Bugsy View Post
Yes, but nothing will be lost since you closed it after the last save was called. When you close the vault, everything from the journal gets pushed to the vault file and the journal is deleted.

Until you get your crashing issue resolved, use something like this. You do not need to open or close the vault any where else in the plugin, this is an all-in-one.
PHP Code:
public nvault_set_safe( const szVaultFile[] , const szKey[] , const szData[] )
{
    new 
iVault;
    
    if ( ( 
iVault nvault_openszVaultFile ) ) != INVALID_HANDLE )
    {
        
nvault_setiVault szKey szData );
        
nvault_closeiVault );
    }
    else
    {
        
set_fail_state"Error saving data to vault" );
    }

that looks nice but would it effect performance & cpu cause i have some random crashes and want to use this to not lose data.
__________________
JusTGo is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 09-15-2015 , 17:48   Re: [SOLVED] NVault and Data Loss
Reply With Quote #13

no, it won't affect cpu and performance
Depresie is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-15-2015 , 18:19   Re: [SOLVED] NVault and Data Loss
Reply With Quote #14

Quote:
Originally Posted by Depresie View Post
no, it won't affect cpu and performance
It does affect performance. I would do this as a last resort and focus on fixing your crashes.
__________________
Bugsy is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 09-16-2015 , 00:12   Re: [SOLVED] NVault and Data Loss
Reply With Quote #15

isn't the difference insignifiant? i mean it will be called about every 5 minutes... is it that heavy to open and close the a vault?
how big difference it could be on a i5 or i7 cpu?

Last edited by Depresie; 09-16-2015 at 00:16.
Depresie is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode