22.11.2011, 15:00
Could anybody help me out here?
Failed to exeute query. Data truncated for column 'LoadPosX' at row 1.
I sometimes get this, could anybody tell me what could be the reason for this?
This is the code that returns this
Failed to exeute query. Data truncated for column 'LoadPosX' at row 1.
I sometimes get this, could anybody tell me what could be the reason for this?
This is the code that returns this
pawn Код:
GetPlayerPos( playerid, PlayerInfo[playerid][PosX], PlayerInfo[playerid][PosY], PlayerInfo[playerid][PosZ] );
format( query, sizeof( query ), "UPDATE `accounts` SET `LoadPosX` = '%f' WHERE `UserID` = '%d'", PlayerInfo[playerid][PosX], PlayerInfo[playerid][pDatabaseID] );
mysql_query(query);