20.11.2016, 03:14
Alright so I've been thinking about this, is it even possible to retrieve data from the Tqueries directly from the command itself? For example
(example code)
I've tried YSI inline but couldnt really do much with it, response would still be un-accessiable.
(example code)
pawn Код:
CMD:test(playerid,params[]) {
new query[128];
mysql_format(mysql,query,sizeof(query),"SELECT * FROM sometable");
mysql_tquery(mysql,query,"onSomeResponse","i",playerid);
//How to get onSomeResponse return here?
return true;
}
public onSomeResponse(playerid) {
if(rows bla bla bla) {
return true;
}
return false;
}
I've tried YSI inline but couldnt really do much with it, response would still be un-accessiable.