01.10.2011, 13:58
hmm, yes, I don't know why I have replaced but it is factions, so.. I think it is from mysqlcheckconnection, here's it:
pawn Код:
public MySQLCheckConnection()
{
if(mysql_ping())
{
return 1;
}
else
{
print("MYSQL: Connection seems dead, retrying...");
MySQLDisconnect();
MySQLConnect(MYSQL_HOST,MYSQL_USER,MYSQL_PASS,MYSQL_DB);
if(mysql_ping()==0)
{
print("MYSQL: Reconnection successful. We can continue as normal.");
return 1;
}
else
{
print("MYSQL: Could not reconnect to server, terminating server...");
SendRconCommand("exit");
return 0;
}
}
}