04.10.2013, 19:03
Nгo esta salvando a posiзгo do player.
pawn Код:
new Float:x, Float:y, Float:z, Float:a;
GetPlayerFacingAngle(playerid, a);
GetPlayerPos(playerid, x, y, z);
format(query, sizeof(query), "UPDATE `playerinfo` SET PosX = '%f', PosY = '%f', PosZ = '%f' ,PosA = '%f' WHERE `Name` = '%s'", x, y, z, a, GetName(playerid));
mysql_function_query(MYSQLConnection, query, false, "noReturnQuery", "d", playerid);