07.01.2012, 15:19
pawn Код:
new Float:X,Float:Y,Float:Z,pname[MAX_PLAYER_NAME];
GetPlayerPos(playerid,X,Y,Z);
GetPlayerName(playerid,pname,sizeof(pname));
format(query,sizeof(query),"UPDATE accounts SET PosX = %f, PosY = %f,PosZ = %f WHERE Name = %s",X,Y,Z,pname);
mysql_query(query);