MYSQL Query Shuts down the server? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: MYSQL Query Shuts down the server? (
/showthread.php?tid=214321)
MYSQL Query Shuts down the server? -
1337connor - 21.01.2011
format(string1,sizeof(string1),"SELECT * FROM `users` WHERE `username`='%s' AND `password`='%s'",NameOf(playerid),password);
(Using Stricken Kids)
Re: MYSQL Query Shuts down the server? -
Pghpunkid - 04.02.2011
Perhaps try escaping the strings? (mysql_real_escape_string)
Re: MYSQL Query Shuts down the server? -
DRIFT_HUNTER - 04.02.2011
Let me guess....your server crash when you call that function....If so than your mysql server is not running or you didnt connect to mysql server