Raised This Month: $ Target: $400
 0% 

Solved Help with saving an array with tries


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 03-17-2017 , 10:58   Re: Help with saving an array with tries
Reply With Quote #1

What is szUser? Can you try this?
PHP Code:
new const someUser[] = "wadjwdja";
const 
somePlayer 0;
const 
someField1 0;
const 
someField2 MAX_ITEMS/2;
const 
someField3 MAX_ITEMS 1;
g_iLimit[somePlayer][someField1] = 7;
g_iLimit[somePlayer][someField2] = 13;
g_iLimit[somePlayer][someField3] = 55;
TrieSetArray(g_tLimitsomeUserg_iLimit[somePlayer], sizeof(g_iLimit[]));
g_iLimit[somePlayer][someField1] = 0;
g_iLimit[somePlayer][someField2] = 0;
g_iLimit[somePlayer][someField3] = 0;
TrieGetArray(g_tLimitsomeUserg_iLimit[somePlayer], sizeof(g_iLimit[]));
server_print("someField1=%d, someField2=%d, someField3=%d"g_iLimit[somePlayer][someField1], g_iLimit[somePlayer][someField2], g_iLimit[somePlayer][someField3]); 
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
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 17:54.


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