06.03.2014, 09:07
It's not a callback
The log is fine. There are no errors.
pawn Код:
public OnPlayerDataLoaded(playerid, race_check)
{
if(race_check != MysqlRaceCheck[playerid])
return Kick(playerid);
new string[128];
if(cache_num_rows() > 0)
{
AssignPlayerData(playerid);
format(string, sizeof(string), CHAT_WHITE "This account (" CHAT_YELLOW "%s" CHAT_WHITE ") is registered. Please login by entering your password in the field below:", Player[playerid][Name]);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", string, "Login", "Abort");
Player[playerid][IsRegistered] = true;
}
else
{
format(string, sizeof(string), CHAT_WHITE "Welcome " CHAT_YELLOW "%s" CHAT_WHITE ", you can register by entering your password in the field below:", Player[playerid][Name]);
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Registration", string, "Register", "Abort");
Player[playerid][IsRegistered] = false;
}
return 1;
}