20.06.2013, 19:01
Quote:
It would be interesting to see someone use y_inline to have inline threaded queries with this. There are some instances where it could be quite beneficial to me to have inline threading (even though it would be pointless for them to be threaded because the inline function would need to wait for a response from the server, ultimately hanging the server). Instead of passing a bunch of different variables and even (possibly) being forced to make new global variables/(P/G)vars just to send information to another callback.
I think that's the only reason why non-threaded queries would be nice to have at least usable. For example, I could do something like this with non-threaded queries: pawn Code:
Nonetheless, if there was a way to have queries where I didn't need to pass them to another callback... it would be beneficial to me. Even though that kind of ignores the whole "threaded" part... |
huh?
pawn Code:
//OnPlayerConnect
format(gQuery, sizeof(gQuery), "SELECT `pSaveSkin` FROM `Accounts` WHERE `Username` = '%s' LIMIT 0,1", pName[playerid]);
mysql_function_query(McHandle, gQuery, true, "Thread_DoesAccountExist", "i", playerid);
THREAD:DoesAccountExist(playerid)
{
//
}
I know you want this other players, just add the rest of the code in it