mysql_tquery
#1

In a filterscript, I have the following code:

Код:
mysql_format(connection, query, sizeof(query), "SELECT * FROM `users` WHERE `name` = '%e'", GetName(playerid));
mysql_tquery(connection, query, "ShowLoginScreen", "d", playerid);
The mysql log shows:

Код:
[03:41:08] [DEBUG] mysql_format - connection: 1, len: 256, format: "SELECT * FROM `users` WHERE `name` = '%e'"
[03:41:08] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `users` WHERE `name` = 'TakeiT'", callback: "ShowLoginScreen", format: "d"
[03:41:08] [DEBUG] CMySQLQuery::Execute[ShowLoginScreen] - starting query execution
[03:41:08] [DEBUG] CMySQLQuery::Execute[ShowLoginScreen] - query was successfully executed within 0.153 milliseconds
[03:41:08] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
[03:41:08] [DEBUG] Calling callback "ShowLoginScreen"..
[03:41:08] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
The log shows everything is okay, however, it does not actually call the function ShowLoginScreen. The connection is in the same filterscript as the above code.
Reply
#2

If I make it mysql_query, it works, which is fine there. However in other spots I don't want to have non-threded queries. and I've tried it with mysql_pquery as well. It seems to do this on every callback.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)