25.12.2015, 11:24
I connected the mysql in my host, the server is running but when I join in game I get a message with mysql error and that I missed a step, if I disable that message, nothing will happen next...
How to fix.. I want the register/login screen to show..
Код:
public loginCheck(playerid)
{
// This function will be used to see if the query times out.
// Ban check step
if(GetPVarInt(playerid, "bcs") == 0)
{
// If it's 0, we have a problem.
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "MySQL problem!", "You missed a step! Here's a list of the potential causes:\n\n- the MySQL connection details are invalid\n- the database dump wasn't imported correctly\n- an unexpected error ocurred\n\nPlease revisit the installation instructions.", "OK", "");
}
return 1;
}
Код:
forward loginCheck(playerid);
Код:
SetTimerEx("loginCheck", 5000, false, "d", playerid);

