24.04.2011, 15:30
Because "mysql_connect" returns the connection handle instead of 'fail' or 'success'
Instead you could do:
Instead you could do:
pawn Код:
if(mysql_ping()==-1)
{
print("Server failed to connect to MySQL!");
SendRconCommand("exit");
}