11.09.2012, 12:29
Ehm i am having a noob question :/
my connect callback, i added it under ongamemodeinit
Now how to use mysql_function_query?
when i try this
i get this error
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;
}
Now how to use mysql_function_query?
when i try this
pawn Код:
mysql_function_query(DBHandle,rest of the function);
Код:
error 017: undefined symbol "DBHandle"