03.05.2014, 14:06
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!");