Connection problems with MySQL - 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: Connection problems with MySQL (
/showthread.php?tid=467354)
Connection problems with MySQL -
FayR - 02.10.2013
Not work.
Re : Connection problems with MySQL -
FayR - 02.10.2013
Can you help me?
Re : Connection problems with MySQL -
FayR - 02.10.2013
It would not be logical to sign?
Re: Connection problems with MySQL -
Baboon - 02.10.2013
Hi,
Do you reset your player variables like loggedin @ Onplayerdisconnect or connect?
Re : Connection problems with MySQL -
FayR - 02.10.2013
No..
Re : Connection problems with MySQL -
FayR - 02.10.2013
I created a callback to reset my variables to disconnect the player, but nothing happens:
pawn Код:
public resetvariables(playerid)
{
Player_logged[playerid] = 0;
Player_have_comptes[playerid] = 0;
Player_tentative_pass[playerid] = 0;
Player_first_connect[playerid] = 0;
return 1;
}
OnPlayerDisconnect
pawn Код:
resetvariables(playerid);
Re : Connection problems with MySQL -
FayR - 04.10.2013
Now it's not work.....
Re : Connection problems with MySQL -
FayR - 04.10.2013
An error has occured. (Error ID: 2006, MySQL server has gone away) in my debug.txt