10.06.2014, 12:47
I have roleplay server i want save my positions.X and Y pos saves but Z pos is saves 0.
Here is my onplayer disconnect code
here is my update functions posz code
Here is my onplayer disconnect code
Код:
new Float:ax,Float:ay,Float:az; GetPlayerPos(playerid,ax,ay,az); PlayerInfo[playerid][PosX] = ax; PlayerInfo[playerid][PosY] = ay; PlayerInfo[playerid][PosZ] = az; Update(playerid, PosXx); Update(playerid, PosYx); Update(playerid, PosZx);
Код:
case PosZx: { format(var, sizeof(var), "UPDATE `players` SET `posZ`='%f' WHERE `username`='%s'", PlayerInfo[playerid][PosZ], playerName); mysql_query(handle ,var); }