MySql connect problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySql connect problem (
/showthread.php?tid=596989)
MySql connect problem -
AndreiWow - 25.12.2015
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...
Код:
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);
How to fix.. I want the register/login screen to show..