22.06.2015, 14:03
Quote:
Escape float like this :
Код:
`SavePosX`='%f' `SavePosY`='%f' `SavePosZ`='%f' `SavePosA`='%f' |
But the data still won't update.
pawn Код:
mysql_format(mysql, query, sizeof query, "UPDATE `players` SET `AdminLevel`=%d `SavePos`=%d `SavePosX`='%f' `SavePosY`='%f' `SavePosZ`='%f' `SavePosA`='%f' `SavePosInterior`=%d `SavePosVW`=%d `Kills`=%d `Deaths`=%d \
`Score`=%d `Money`=%d WHERE ID=%d", pData[playerid][p_AdminLevel], pData[playerid][p_SavePos], tmpX, tmpY, tmpZ, tmpA,
pData[playerid][p_SavePosInterior], pData[playerid][p_SavePosVW], pData[playerid][p_Kills], pData[playerid][p_Deaths], GetPlayerScore(playerid), GetPlayerMoney(playerid), pData[playerid][p_ID]);