01.01.2014, 21:12
The complete removal of un-threaded queries in BlueG's MySQL plugin has created an issue.
It is not anymore possible (as far as I know) returning from a function the result of a query because it's retrieved in another callback and not in the called function. By that I mean, for example:
Pseudocode:
Now, you can't do such thing. You must do something like:
Pseudocode:
Now, maybe with #emit functions it might be possible, but I might be wrong.
Any idea on how to fix this?
It is not anymore possible (as far as I know) returning from a function the result of a query because it's retrieved in another callback and not in the called function. By that I mean, for example:
Pseudocode:
pawn Код:
stock getDBID("Name")
{
sql_query("query the name");
databaseid = retrieve_database_id;
return databaseid;
}
Pseudocode:
pawn Код:
stock getDBID("Name")
{
sql_query("query the name");
retrieve_database_id("callback_getdb", params);
}
forward callback_getdb(params);
public callback_getdb(params)
{
databaseid = id_found_from_query;
}
Any idea on how to fix this?