MySQL R33 problem
#1

Ok i have the BlueG's MySQL R33 plugin and this code on OnGameModeInit:

pawn Код:
for(new connectionCount; connectionCount < MYSQL_CONNECTION_TRIES; connectionCount++)
    {
        mConnectionHandle = mysql_connect(SQLHost, SQLUser, SQLDatabase, SQLPassword);
        if(mysql_ping(mConnectionHandle) == -1)
        {
            if(connectionCount == MYSQL_CONNECTION_TRIES - 1)
            {
                printf("The server has failed to connect to MySQL the maximum amount of times, shutting down...");
                SendRconCommand("exit");
                return 1;
            }
            else
            {
                printf("Failed to connect to MySQL, retrying...");
            }
        }
        else
        {
            printf("The server has successfully connected to MySQL!");
            mysql_debug(SQLDebug);
            break;
        }
    }
But, while compiling i get undefined symbol "mysql_ping".

I tried to remove this line
pawn Код:
if(mysql_ping(mConnectionHandle) == -1)
with all the brackets but nothing.
Reply


Messages In This Thread
MySQL R33 problem - by Face9000 - 26.01.2014, 09:04
AW: MySQL R33 problem - by Mellnik - 26.01.2014, 09:08
Re: MySQL R33 problem - by Konstantinos - 26.01.2014, 09:12
Re: MySQL R33 problem - by Face9000 - 26.01.2014, 09:24

Forum Jump:


Users browsing this thread: 1 Guest(s)