01.11.2016, 11:24
I can't figure out what the problem is.
It says I have an error in my sql syntax.
Is there an other way to do this?
I need to update the row and insert if the DisplayID does not exist
Here is my mysql table:
It says I have an error in my sql syntax.
PHP код:
new queryy[500];
mysql_format(mysql, queryy, sizeof(queryy), "REPLACE INTO `offsets` (`DisplayID`,`PosX0`,`PosY0`,`PosZ0`,`RotX0`,`RotY0`,`RotZ0`,`ScaleX0`,`ScaleY0`,`ScaleZ0`) VALUES ('%i',%f','%f','%f','%f','%f','%f','%f','%f','%f')", GetModelID(GetPVarInt(playerid, "edit")), fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, fScaleX, fScaleY, fScaleZ);
mysql_query(mysql, queryy);
SendClientMessage(playerid, -1, "Editing object");
RemovePlayerAttachedObject(playerid, 0);
I need to update the row and insert if the DisplayID does not exist
Here is my mysql table: