SA-MP Forums Archive
MySQL Error: - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL Error: (/showthread.php?tid=461258)



MySQL Error: - EliteApple - 01.09.2013

No error in pawno, I get the error in server console.

Line:
pawn Код:
format( Query, sizeof( Query ), "SELECT `UserID` FROM `Accounts` WHERE `Username` = '%s'", EscapedName );
Error:
Quote:

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 '' at line 1.

SQL: SELECT `UserID` FROM `Accounts` WHERE `Username` = 'Apple_Test'