17.09.2011, 00:40
EDIT: FIXED
I can't get mySQL to save player position. Here is my code:
Note: Please don't make a comment on my signature. I've already used ****** -.-
I can't get mySQL to save player position. Here is my code:
pawn Код:
SavePlayerData(playerid)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
new query[600];
format(query, 600, "UPDATE accounts SET LastX = '%f', LastY = '%f', LastZ = '%f', LastA = '%f' WHERE ID = '%d'", x, y, z, a, PlayerInfo[playerid][ID]);
mysql_query(query);
return 1;
}