03.08.2011, 16:50
I have a small problem, sometimes when users attempt to login through a threaded query it just stops the server
log..
it just ends right there ^^
pawn Код:
new lEscape[2][MAX_PLAYER_NAME],string[128];
mysql_real_escape_string(Playername(playerid), lEscape[0]);
mysql_real_escape_string(inputtext, lEscape[1]);
format(string, 128, "SELECT * FROM `Accounts` WHERE `Username` = '%s' AND `Password` = '%s' LIMIT 0,1", lEscape[0], lEscape[1]);
mysql_query_callback(playerid, string, "OnUserLogin");
Код:
[16:02:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:02:06] CMySQLHandler::EscapeString(vhhbjkl7); - Escaped 8 characters to vhhbjkl7. [16:02:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:02:06] CMySQLHandler::EscapeString(dfsdfdsfsdfsdfsdfsdfsdfsdfsf); - Escaped 28 characters to dfsdfdsfsdfsdfsdfsdfsdfsdfsf. [16:02:06] >> mysql_query_callback( Connection handle: 1 ) [16:02:06] CMySQLHandler::Query("OnUserLogin") - Custom callback query with index 102 started (ExtraID: -1)