Raised This Month: $ Target: $400
 0% 

Solved nvault crashing the server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-11-2017 , 19:16   Re: nvault crashing the server
Reply With Quote #1

Nothing happens, nvault allows saving empty data.

Your timing for doing things looks good.

nvault_get() needs to be used carefully. If you want to retrieve data and know when the key did or did not exist, use nvault_lookup().

Example: nvault_get() will return 0 when it found the key and the value is 0 and it will do the same if no key is found at all. Its useful because you can read directly into an integer or float variable but you need to know what you're doing when coding.
__________________

Last edited by Bugsy; 03-11-2017 at 19:16.
Bugsy 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 18:04.


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