Save and Load Problems (nVault)
Alright, so here's the basic problem:
When there's no vault file, I can change the map, and it will work perfectly fine, but if someone kills someone, and it saves something to the vault, and I change the map, it crashes. What could possibly be the problem? PHP Code:
-The nVault is closed at plugin_end() -The nVault only loads data when the person joins a team |
Re: Save and Load Problems (nVault)
nvault_set(g_Vault, vaultkey, pub_Stats[id][STATSCOUNT]);
Looks like here you are attempting to write an integer value? If so you must first convert to string. |
Re: Save and Load Problems (nVault)
Quote:
PHP Code:
|
Re: Save and Load Problems (nVault)
Yes, but the number cannot possibly be that big (62 digits), reduce the string size to a realistic number. If you still get errors then maybe your vault file is corrupt, try shutting down your server, delete vault file, and restart.
|
Re: Save and Load Problems (nVault)
Quote:
|
Re: Save and Load Problems (nVault)
You are limited to a 32-bit signed integer in Pawn (without considering any memory trickery) so the max number of digits you will encounter is 10, plus 1 to make room for the sign if negative plus one for null char so you can safely size the number string at 12.
Values storable in a 32-bit signed int are -2,147,483,647 to 2,147,483,647 which should be plenty. |
Re: Save and Load Problems (nVault)
Quote:
|
| All times are GMT -4. The time now is 11:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.