Score/money isnt saving
#1

hey guys i got this problem i have reg system it saves your acc you have the PW and stuff but the worst thing your money and your Score wont be saved may i ask why i looked into but nothing.
Reply
#2

What saving system do you use? dini?
Reply
#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
#4

i am using dini
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)