Raised This Month: $ Target: $400
 0% 

Nvault Load Problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
wgwgkg
Member
Join Date: May 2011
Old 08-10-2012 , 02:14   Nvault Load Problem
Reply With Quote #1

I got a problem about nvault load.For example:

If A Player run a Load function, sometimes may load the data from B Player.[I don't know how to say this.]

A Player has $50, B Player has $100. Sometimes when A Player Load his data $50, he maybe get B Player data $100. So A Player suddently get more 50$.

This is my Load and Save code. Can anyone tell me why will this happen and how to fix it PLZZZZZZ!
PHP Code:
public Savegun(id)
{
         new 
name[35], vaultkey[64], vaultdata[256]
         
get_user_name(idname34)
         
format(vaultkey63"%s"name)
         
format(vaultdata255"%i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i"
         
g_gun[id][0],g_gun[id][1],g_gun[id][2],g_gun[id][3],g_gun[id][4],g_gun[id][5],g_gun[id][6],g_gun[id][7],g_gun[id][8],g_gun[id][9],g_gun[id][10],g_gun[id][11],g_gun[id][12],g_gun[id][13], g_gun[id][14], g_gun[id][15], g_gun[id][16], g_gun[id][17], g_gun[id][18], g_gun[id][19], g_gun[id][20], g_gun[id][21], g_gun[id][22], g_gun[id][23], g_gun[id][24], g_gun[id][25])
         
nvault_set(g_vaultvaultkeyvaultdata)
         return
}

new 
data[32][32]
public 
Loadgun(id)
{
    new 
vaultkey[33], vaultdata[256]
    
get_user_name(id,vaultkey,charsmaxvaultkey ) )
    
nvault_get(g_vaultvaultkeyvaultdatacharsmax(vaultdata))
    
    
replace_all(vaultdata255"#"" "//Line 1772  
    
parse(vaultdatadata[0], 31data[1], 31data[2], 31data[3], 31data[4], 31data[5], 31data[6], 31 data[7], 31data[8], 31data[9], 31data[10], 31data[11], 31data[12], 31data[13], 31data[14], 31data[15], 31data[16], 31data[17], 31data[18], 31data[19], 31data[20], 31data[21], 31data[22], 31data[23], 31data[24], 31data[25], 31)
    
    for (new 
026i++)
        
g_gun[id][i] = str_to_num(data[i])

Sorry for my bad English , I hope i can find a problem!
wgwgkg is offline
 



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 05:48.


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