Mysql warning - 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 warning (
/showthread.php?tid=602902)
Mysql warning -
ScIrUsna - 15.03.2016
Hi,
When i off my server i get mysql warning
Код:
no connection available
I use
Код:
SendRconaCommand("exit");
off my server and in
Код:
public OnGameModeExit( )
{
mysql_close( );
}
Re: Mysql warning -
czerwony03 - 15.03.2016
Any filterscripts that use MySQL?
Any MySQL queries in OnGameModeExit?
Re: Mysql warning -
BurnZ - 15.03.2016
It's
Код:
SendRconCommand("exit");
In the first place, does your game mode use mysql? Any filterscripts that use MySQL?
Re: Mysql warning -
ScIrUsna - 15.03.2016
Yes my gamemode use mysql, i don't use filtersripts. Yes i do some savings things in ongamemodeexit.
Re: Mysql warning -
Stev - 15.03.2016
"no connection available"
Do you have the correct detail to connect to your database maybe?
Re: Mysql warning -
ScIrUsna - 15.03.2016
Everything is okey i connect do queries no mistakes i earlier don't get this warning.
Re: Mysql warning -
ScIrUsna - 16.03.2016
Or maybe better use
Instend
Код:
SendRconCommand("exit");
Because how i understand server
Код:
mysql_close will now halt the server until the query we just sent is executed.
Re: Mysql warning -
Beckett - 16.03.2016
Could you tell me how do you connect exactly? Showing a piece of your code would be also helpful.
Re: Mysql warning -
ScIrUsna - 16.03.2016
mysql_connect(....); in ongamemodeinit.