27.11.2011, 12:30
Well, i have an problem.
This code wont save x,y and z. Can somebody help me?
http://www.upload.ee/image/1843317/lolololo.PNG this is at the phpmyadmin.
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
if(Logged[playerid] == 1)
{
new mangutunde = GetPlayerScore(playerid);
new raha = GetPlayerMoney(playerid);
new Float:x, Float:y, Float:z, query[200], pname[24];
GetPlayerName(playerid, pname, 24);
GetPlayerPos(playerid, x, y, z);
format(query, sizeof(query), "UPDATE playerinfo SET mangutunde=%d AND raha=%d AND `x`= '%f' AND `y`= '%f' AND `z`= '%f' WHERE kasutaja='%s'", mangutunde, raha, x, y, z, pname);
mysql_query(query);
}
return 1;
}
http://www.upload.ee/image/1843317/lolololo.PNG this is at the phpmyadmin.