Score/money isnt saving
#3

you managed to save the PW, what's so difficult about saving money pal?

PHP код:
enum e_pInfo
{
    
pSQLid,
    
pPass[129],
    
pSalt[30],
    
pScore,
    
pMoney
}
new 
Pi[MAX_PLAYERS][e_pInfo];
//now when a player earns some money, just do
GivePlayerMoney(playerid500);
Pi[playerid][pMoney] += 500;
//and just add it to the playerfile or mysql table on disconnect, just like your PW 
it's that simple if you're using enum's to store the stats
Reply


Messages In This Thread
Score/money isnt saving - by Acres - 22.12.2013, 20:11
Re: Score/money isnt saving - by TheOriginal1337 - 22.12.2013, 20:22
Re: Score/money isnt saving - by CutX - 22.12.2013, 20:24
Re: Score/money isnt saving - by Acres - 22.12.2013, 20:35

Forum Jump:


Users browsing this thread: 2 Guest(s)