new Query[ 3000 ], sendername[MAX_PLAYER_NAME], playername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(id, playername, sizeof(playername)); format( Query, sizeof( Query ), "INSERT INFO `fines` (Politist, Pret, Pentru, Posesor) VALUES('%s', '%d', '%s', '%s')", playername, price, reason, sendername); mysql_query( Query );
[22:54:17] MySQL Error (0): Could not execute 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 '`fines` (Politist, Pret, Pentru, Posesor) VALUES('Beltramo_Cusimano', '0', 'test' at line 1. |
INSERT INFO `fines` (Politist, Pret, Pentru, Posesor) VALUES('%s', '%d', '%s', '%s')
INSERT INTO `fines` (Politist, Pret, Pentru, Posesor) VALUES('%s', '%d', '%s', '%s')