MYSQL Crashing my 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 Crashing my server? (
/showthread.php?tid=215236)
MYSQL Crashing my server? -
1337connor - 23.01.2011
pawn Код:
format(file,sizeof(file),"INSERT INTO users (`username`,`password`,`PhoneNumb`) VALUES('%s','%s','%i')",PlayerName(playerid),pass,CurrentPhone);
mysql_query(file);
This will crash my server?
Re: MYSQL Crashing my server? -
Anthonyx3' - 23.01.2011
It shouldnt crash your server, as i dont see any errors within the code
Re: MYSQL Crashing my server? -
Not available - 23.01.2011
The query itself shouldn't crash the server.
pawn Код:
format(file,sizeof(file),"INSERT INTO `users` (`username`,`password`,`PhoneNumb`) VALUES ('%s','%s', '%i');", PlayerName(playerid), pass, CurrentPhone);
mysql_query(file);
Re: MYSQL Crashing my server? -
1337connor - 23.01.2011
Quote:
Originally Posted by Not available
The query itself shouldn't crash the server.
pawn Код:
format(file,sizeof(file),"INSERT INTO `users` (`username`,`password`,`PhoneNumb`) VALUES ('%s','%s', '%i');", PlayerName(playerid), pass, CurrentPhone); mysql_query(file);
|
That doesn't insert, though.. also, password = '%i'
it's udb hashes.