03.03.2013, 09:25
Hello everyone. I use BlueG MySQL plugin and server going to crash when script try to call callback into mysql_function_query
here is code:
When script trying to call "LoginPlayer" script going to crash, I have not idea what to do... Sry for bad english
here is code:
Код:
public OnPlayerLogin(playerid,password[]) { new string[128]; TextDrawShowForPlayer(playerid,logo0); new nick[MAX_PLAYER_NAME]; GetPlayerName(playerid, nick, sizeof(nick)); new password3[64]; mysql_real_escape_string(password, password3); new password2 = num_hash(password3); format(string, sizeof(string), "SELECT * FROM `korisnici` WHERE Nick = '%s' LIMIT 1", nick); mysql_function_query(connectionHandle, string, true, "LoginPlayer", "ii", playerid, password2); return 1; }