MySQLConnect()
#2

Because "mysql_connect" returns the connection handle instead of 'fail' or 'success'

Instead you could do:

pawn Код:
if(mysql_ping()==-1)
{
    print("Server failed to connect to MySQL!");
    SendRconCommand("exit");
}
Reply


Messages In This Thread
MySQLConnect() - by BritishBoy - 24.04.2011, 15:24
Re: MySQLConnect() - by playbox12 - 24.04.2011, 15:30
Re: MySQLConnect() - by BritishBoy - 24.04.2011, 15:37
Re: MySQLConnect() - by [NoV]LaZ - 24.04.2011, 15:40
Re: MySQLConnect() - by BritishBoy - 24.04.2011, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)