10.06.2015, 08:13
What I would advise you to do is to pass the connection handle to the callback via mysql_tquery. This way you don't really have to bother with globals. e.g.:
PHP код:
mysql_tquery(forumdb, query, "MyCallback", "dd", playerid, forumdb);
// ...
public MyCallback(playerid, connectionHandle)
{
new rows = cache_get_row_count(connectionHandle);
// ...
}

