My SQL doesn't save moneyz!
#10

I'm sure you've changed another one.
pawn Код:
format(szQuery, sizeof(szQuery), "%s, Interior = %d, Skin = %d, Money = %d WHERE ID = %d", szQuery, playerVariables[playerid][pInterior], playerVariables[playerid][pSkin], GetPlayerMoney(playerid), playerVariables[playerid][pDBID]);
On the format, it updates what the variable playerVariables[playerid][pMoney] holds and in your case is 0. Just use the GetPlayerMoney function to the formatted text.
Reply


Messages In This Thread
My SQL doesn't save moneyz! - by Oscii - 30.12.2012, 20:33
Re: My SQL doesn't save moneyz! - by Jochemd - 30.12.2012, 20:37
Re: My SQL doesn't save moneyz! - by Oscii - 30.12.2012, 20:38
Re: My SQL doesn't save moneyz! - by Oscii - 30.12.2012, 20:41
Re: My SQL doesn't save moneyz! - by Konstantinos - 30.12.2012, 20:45
Re: My SQL doesn't save moneyz! - by Oscii - 30.12.2012, 20:50
Re: My SQL doesn't save moneyz! - by Konstantinos - 30.12.2012, 20:54
Re: My SQL doesn't save moneyz! - by Oscii - 30.12.2012, 21:02
Re: My SQL doesn't save moneyz! - by Oscii - 30.12.2012, 21:05
Re: My SQL doesn't save moneyz! - by Konstantinos - 30.12.2012, 21:07

Forum Jump:


Users browsing this thread: 1 Guest(s)