Converting mysql_ping
#2

Something like:
pawn Код:
MainPipeline = mysql_connect(...); // EDIT THE ARGUMENTS

switch(mysql_errno(MainPipeline))
{
    case 0: print("[MySQL] (MainPipeline) Connection successful toward MySQL Database Server!");
    case 2003:
    {
        printf("[MySQL] (MainPipeline) Fatal Error! Could not connect to MySQL: Host %s - DB: %s - User: %s", SQL_HOST, SQL_DB, SQL_USER);
        print("[MySQL] Note: Make sure that you have provided the correct connection credentials.");
        SendRconCommand("exit");
        return 1;
    }
}
Reply


Messages In This Thread
Converting mysql_ping - by AchievementMaster360 - 27.11.2013, 13:42
Re: Converting mysql_ping - by Konstantinos - 27.11.2013, 13:48
Re: Converting mysql_ping - by AchievementMaster360 - 27.11.2013, 13:50

Forum Jump:


Users browsing this thread: 1 Guest(s)