28.08.2009, 06:57
Hi!
I know there is another callback topic, but I have another problem. :/
I'm using this kind of callback:
I call a function from Pawno like StartListening.
and then the function in the plugin saves the amx variable (pAMX = amx).
and then later if there is an incoming data it calls the callback with the same amx.
but I'm using this amx 2 times like 2 callbacks, can it be a problem?
And the callback doesn't works. I put a printf in the callback and it doesn't appears :/.
Please answer my questions, and give me a good callback example .
Thanks!
I know there is another callback topic, but I have another problem. :/
I'm using this kind of callback:
Код:
cell amx_addr, amx_ret, * amx_physAddr; int amx_idx; if (!amx_FindPublic(pAMX, "SomeFunction", &amx_idx)) { amx_PushString(pAMX, &amx_addr, &amx_physAddr, SomeString, 0, 0); amx_Push(pAMX, SomeInt); amx_Exec(pAMX, &amx_ret, amx_idx); amx_Release(pAMX, amx_addr); }
and then the function in the plugin saves the amx variable (pAMX = amx).
and then later if there is an incoming data it calls the callback with the same amx.
but I'm using this amx 2 times like 2 callbacks, can it be a problem?
And the callback doesn't works. I put a printf in the callback and it doesn't appears :/.
Please answer my questions, and give me a good callback example .
Thanks!