"mysql_close" - invalid connection handle (id: 1) - 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_close" - invalid connection handle (id: 1) (
/showthread.php?tid=605600)
"mysql_close" - invalid connection handle (id: 1) -
danielpalade - 21.04.2016
Another wierd error..
There are all of my mysql_close.
Код:
public OnGameModeExit() {
#if defined DEBUG
print("[debug] OnGameModeExit()");
#endif
mysql_close(handle);
return 1;
}
public restartTimer()
{
iGMXTick--;
switch(iGMXTick)
{
case 0:
{
mysql_close(handle);
KillTimer(iGMXTimer);
SendRconCommand("gmx");
}
}
return 1;
}
How can I fix this?
Re: "mysql_close" - invalid connection handle (id: 1) -
DTV - 22.04.2016
Is your connection handle literally defined as "handle"?
Re: "mysql_close" - invalid connection handle (id: 1) -
danielpalade - 22.04.2016
Quote:
Originally Posted by DTV
Is your connection handle literally defined as "handle"?
|
Yep it is.
Re: "mysql_close" - invalid connection handle (id: 1) -
DTV - 22.04.2016
Is the mysql server connecting successfully?
Re: "mysql_close" - invalid connection handle (id: 1) -
danielpalade - 22.04.2016
Quote:
Originally Posted by DTV
Is the mysql server connecting successfully?
|
Yes.
Re: "mysql_close" - invalid connection handle (id: 1) -
danielpalade - 22.04.2016
Bumping!