05.05.2014, 15:08
in the save ,edit yours to :
you have to tell pawno that x = playerinfo[playerid][pposx] and y = PlayerInfo[playerid][pPosY] and z = PlayerInfo[playerid][pPosZ] , also you don't have to make more than one query, so i edited it to you to be one query.
pawn Код:
new Float: x, Float: y, Float: z;
GetPlayerPos(playerid, x, y, z);
PlayerInfo[playerid][pPosX] = x;
PlayerInfo[playerid][pPosY] = y;
PlayerInfo[playerid][pPosZ] = z;
mysql_format(sqldb, query, sizeof(query), "UPDATE users SET posx ='%f', posy ='%f',posz ='%f' WHERE nev ='%e'", PlayerInfo[playerid][pPosX],PlayerInfo[playerid][pPosY],PlayerInfo[playerid][pPosZ], GetName(playerid));
mysql_query(sqldb, query);

