Which MySQL plugin shall i use to fix these errors?
#6

Change mysql_debug(1); to mysql_log();

pawn Код:
stock ConnectMySQL()
{
    dbHandle = mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
    mysql_log();
    if(dbHandle)
    {
        printf("Failed to connect to MySQL !");
    } else {
        printf("Connected to MySQL !");
    }
    return 1;
}
mysql_connect will return a valid connection handle which is represented by a number, or 0 if the connection isn't successful.


loose indentation warnings mean that the code is not evenly indented.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)