20.06.2013, 18:56
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:
So I would have the ability to make a function like "DoesAccountExist". However, I understand the reasoning behind removing threaded queries.
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...
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:
"SELECT `id` FROM `accounts` WHERE `username` = 'RealCop228'"
cache_get_data(rows, fields);
if(rows > 0) // yes, the account exists
else // no, the account doesn't exist
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...