mysql help
#3

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;
        }
    }
}
Reply


Messages In This Thread
mysql help - by fordawinzz - 30.09.2011, 15:36
Re: mysql help - by Retardedwolf - 01.10.2011, 11:13
Re: mysql help - by fordawinzz - 01.10.2011, 13:58
Re: mysql help - by Retardedwolf - 01.10.2011, 21:32
Re: mysql help - by fordawinzz - 02.10.2011, 08:20

Forum Jump:


Users browsing this thread: 1 Guest(s)