02.12.2014, 11:35
Hello, when i compile the server im getting 0 Warnings and Errors, but when i start the server and someone want to join it the server just go off and shows this in the logs:
i tryed some mysql plugins but or it wont let me compile the gamemode or i get the same problem that the server is crashing.
callback loadplayer
Код:
#0 native mysql_real_escape_string () [10006af0] from mysql.dll
callback loadplayer
Код:
stock AttemptPlayerLogin(playerid, passbuffer[]) {
new
szQuery[225],
szPlayerName[MAX_PLAYER_NAME],
szPlayerName2[MAX_PLAYER_NAME];
GetPlayerName(playerid, szPlayerName, sizeof(szPlayerName));
mysql_real_escape_string(szPlayerName, szPlayerName2, g_MySQLConnections[0]);
format(szQuery, sizeof(szQuery), "SELECT * FROM players WHERE Username = '%s' AND Password = '%s'", szPlayerName2, passbuffer);
mysql_query(szQuery, THREAD_LOGIN_ATTEMPT, playerid, g_MySQLConnections[0]);
return 1;
}


