23.08.2015, 08:08
Why is OnAccountCheck not being called? I don't see the print.
Crashdetect doesn't show anything and the mysql_log looks normal.
Код:
forward OnAccountCheck(playerid); public OnPlayerConnect(playerid) { SetPlayerColor(playerid, 0x888888FF); GameTextForPlayer(playerid,"~r~SA-MP: ~w~Rivershell",2000,5); RemoveNeededBuildingsForPlayer(playerid); new query[256]; GetPlayerName(playerid, PlayerInfo[playerid][Name], 24); mysql_format(mysql, query, sizeof(query), "SELECT `Password`, `ID` FROM `accounts` WHERE `Name` = '%e' LIMIT 1", PlayerInfo[playerid][Name]); mysql_tquery(mysql, query, "OnAccountCheck", "i", playerid); return 1; } public OnAccountCheck(playerid) { print("Reached onAccountCheck!")
Crashdetect doesn't show anything and the mysql_log looks normal.