04.05.2013, 19:40
This is the error :
And this is the code :
ps : the query variabile is 1024 in size , so tha'ts not the problem
LE : Here is the sql
Код:
[Tue Apr 30 21:02:03 2013] Function: mysql_query executed: "UPDATE players SET `jskill` = '0',`mskill` = '0',`dskill` = '0',`fskill` = '0', WHERE id = '153'" with result: "1". [Tue Apr 30 21:02:03 2013] Error (0): Failed to exeute query. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE id = '153'' at line 1.
pawn Код:
...
format(query, sizeof(query), "UPDATE players SET `jskill` = '%d',`mskill` = '%d',`dskill` = '%d',`fskill` = '%d', WHERE id = '%d'",PlayerInfo[playerid][jskill],PlayerInfo[playerid][mskill],PlayerInfo[playerid][dskill],PlayerInfo[playerid][fskill],PlayerInfo[playerid][SQLID]);
mysql_query(query);
..
LE : Here is the sql