MySQLConnect()
#4

pawn Код:
stock MySQLConnect()
{
    mysql_debug(1);
    mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);

    if (mysql_ping()) == -1)
    {
        print("Server failed to connect to MySQL!");
        SendRconCommand("exit");
    }
    else
    {
        print("Connection successful\nGood day");
    }
}
Reply


Messages In This Thread
MySQLConnect() - by BritishBoy - 24.04.2011, 15:24
Re: MySQLConnect() - by playbox12 - 24.04.2011, 15:30
Re: MySQLConnect() - by BritishBoy - 24.04.2011, 15:37
Re: MySQLConnect() - by [NoV]LaZ - 24.04.2011, 15:40
Re: MySQLConnect() - by BritishBoy - 24.04.2011, 15:44

Forum Jump:


Users browsing this thread: 2 Guest(s)