View Single Post
aEEk
Member
Join Date: May 2012
Location: Romania
Old 05-27-2020 , 11:21   Re: [INC] nVault Array
Reply With Quote #9

Quote:
Originally Posted by Bugsy View Post
Shouldn't these codes:

PHP Code:
playerCases[i][id]     = userDATA[id][pdCases][i];
sttNumber stattrak[i][id];
killsNumber kill[i][id];
skinSelected UsingWeapon[i][id]; 
be
PHP Code:
playerCases[id[i]     = userDATA[id][pdCases][i];
sttNumber stattrak[id][i];
killsNumber kill[id][i];
skinSelected UsingWeapon[id][i]; 
I think it's same think, it depends how you declare variables (eg: new stattrak[MAX+1][33] where max could be more than 100)...


----
Quote:
I didn't look closely at your code but you are using many nvault array records, ideally you should have all data in the same one. Are you changing the save method of an existing plugin to use nVault array?
I choosed the option to separate data because I like the code to be clean and code readable and friendly to read.
First I have used nvault, but because there is so much data to store I faced some issues that data strings can not be so longer and had to split in more strings and using strok method, etc, headacke, with nvault_array is much easier. but now I am facing this...

Last edited by aEEk; 05-27-2020 at 11:23.
aEEk is offline
Send a message via Yahoo to aEEk Send a message via Skype™ to aEEk