12.09.2011, 12:02
Hi..
So I'm having a little problem when I save the player's money in a DB.
I have this at "OnPlayerDisconnect"
However it always sets the player's money to "1" (while playing it is correct though)
So I'm having a little problem when I save the player's money in a DB.
I have this at "OnPlayerDisconnect"
pawn Код:
format(string, sizeof(string), "UPDATE `user` SET `money`=%d AND `score`=%d WHERE `name`='%s'", GetPVarInt(playerid, "Money"), GetPlayerScore(playerid), name);
mysql_query(string);