09.02.2012, 20:26
I think you should delete the spaces in a_mysql.inc, like this:
Even then, it might expect you to actually give it 4 parameters. This is often ignored in code for previous plugin versions, since connectionHandle defaults to 1 since the beginning!
And to be completely honest, I don't think you should stick to the old method of having an OnQueryFinish callback. I find the cache method very convenient to use. Besides, you don't even need 4 parameters to be passed to the callback most of the time, but having the ability to pass more parameters using the 5th+ parameter is great.
Код:
#define mysql_query(%1,%2,%3,%4) \ mysql_function_query(%4, %1, false, "OnQueryFinish", "siii", %1, %2, %3, %4)
And to be completely honest, I don't think you should stick to the old method of having an OnQueryFinish callback. I find the cache method very convenient to use. Besides, you don't even need 4 parameters to be passed to the callback most of the time, but having the ability to pass more parameters using the 5th+ parameter is great.