02.12.2012, 14:07
Hello
I have the following code:
which outputs:
Why do I have money=1 in query when I actually have 100 money as seen on printf("%d",GetPlayerMoney(playerid));. Also why do i have that strange symbol in word UPDATE (јPDATE instead of UPDATE)?
I have the following code:
Код:
new Query1[200]; format(Query1,sizeof(Query1),"UPDATE samp SET Health=%d money=%d WHERE id=%d",GetPlayerHealth(playerid),GetPlayerMoney(playerid),PlayerInfo[playerid][plID]); SendClientMessage(playerid,0xFFFFFF,Query1); printf("%s",Query1); printf("%d",GetPlayerMoney(playerid));
Код:
јPDATE samp SET Health=1 money=1 WHERE id=1 100