Mysql warning
#1

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( );
}
Reply
#2

Any filterscripts that use MySQL?

Any MySQL queries in OnGameModeExit?
Reply
#3

It's

Код:
SendRconCommand("exit");
In the first place, does your game mode use mysql? Any filterscripts that use MySQL?
Reply
#4

Yes my gamemode use mysql, i don't use filtersripts. Yes i do some savings things in ongamemodeexit.
Reply
#5

"no connection available"
Do you have the correct detail to connect to your database maybe?
Reply
#6

Everything is okey i connect do queries no mistakes i earlier don't get this warning.
Reply
#7

Or maybe better use

Код:
GameModeExit();
Instend

Код:
SendRconCommand("exit");
Because how i understand server

Код:
mysql_close will now halt the server until the query we just sent is executed.
Reply
#8

Could you tell me how do you connect exactly? Showing a piece of your code would be also helpful.
Reply
#9

mysql_connect(....); in ongamemodeinit.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)