Help with mysql [r7]
#1

Ehm i am having a noob question :/
pawn Код:
forward MySQLConnect();
public MySQLConnect()
{
    new DBHandle=mysql_connect(MySQL_Host,MySQL_User,MySQL_DB,MySQL_Password);
    if(mysql_ping()==1)
    {
        mysql_debug(1);
        printf("Successfully connected to %s",MySQL_DB);
    }
    else
    {
        printf("[MYSQL] Error: Couldn't connect to %s",MySQL_DB);
    }
    return 1;
}
my connect callback, i added it under ongamemodeinit
Now how to use mysql_function_query?
when i try this
pawn Код:
mysql_function_query(DBHandle,rest of the function);
i get this error
Код:
error 017: undefined symbol "DBHandle"
Reply


Messages In This Thread
Help with mysql [r7] - by CoDeZ - 11.09.2012, 12:29
Re: Help with mysql [r7] - by doreto - 11.09.2012, 12:59
Re: Help with mysql [r7] - by CoDeZ - 11.09.2012, 13:07
Re: Help with mysql [r7] - by Kirollos - 11.09.2012, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)