PING with "a_mysql"
#3

There is mysql_errno, so simply:

pawn Код:
mysql_connect(.....

if(mysql_errno() != 0)
{
    print(!"MySQL: Failed to connect.");
    SendRconCommand("exit");
    return false;
}
print(!"MySQL: Connecting successful!");
Reply


Messages In This Thread
PING with "a_mysql" - by jcvag44800 - 03.05.2014, 11:53
Re: PING with "a_mysql" - by Vince - 03.05.2014, 12:43
Re: PING with "a_mysql" - by iZN - 03.05.2014, 14:06

Forum Jump:


Users browsing this thread: 1 Guest(s)