Raised This Month: $ Target: $400
 0% 

storing multiple values in nvault?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-27-2015 , 19:49   Re: storing multiple values in nvault?
Reply With Quote #10

Yes, you can call the save function any time you want. Doing it at disconnect is normally done because it avoids redundant saves, plus it gives you the accurate last known data for the player.

How often does the average persons server crash? I ran one for years and it was very rare for me. If you have something that is causing a crash, address it. Don't let it be and work around the fact that you will get crashes.

Quote:
Originally Posted by redivcram View Post
I'll keep that in mind. But can I add inside plugin_end an index for online players with get_players and when it crashes (ends) it saves it for every player? Yes.. confusing indeed
No, when a crash occurs nothing gets called. It's like a light switch. plugin_end() only gets called on graceful shutdown and map change.
__________________

Last edited by Bugsy; 10-27-2015 at 19:50.
Bugsy is offline
 



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 18:13.


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