Thread
:
[INC] nVault Array
View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
05-29-2020 , 19:19 Re: [INC] nVault Array
#
14
nVault Array is really just a hacky way of storing 4-byte integers in a string. For every value you save in an nVault array, it consumes 5 characters of string in the vault. So to keep this from consuming a ton of memory, I capped the default max array size at 500 since the array/buffer needed to accommodate this is 500x5 = 2500 x 4 bytes per cell = 10,000 bytes + 1 null-terminating cell = 10,004 bytes. This can be increased.
This allows you to save up to a 500 cell array:
new Test1[ 500 ];
new Test2[ 2 ][ 250 ];
new Test3[ 5 ][ 100 ];
This is why I think you may be exceeding the max allowed storage, since you are saving a ton of data.
__________________
Plugins
|
CSStats Editor
|
nVault Editor
Last edited by Bugsy; 05-30-2020 at
09:36
.
Bugsy
View Public Profile
Send a private message to Bugsy
Find More Posts by Bugsy