Callback problems
#1

Hi!
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);
}
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!
Reply


Messages In This Thread
Callback problems - by joco96 - 28.08.2009, 06:57
Re: Callback problems - by Marcus09 - 28.08.2009, 10:50
Re: Callback problems - by Correlli - 28.08.2009, 10:51
Re: Callback problems - by joco96 - 29.08.2009, 14:33
Re: Callback problems - by Incognito - 29.08.2009, 17:51
Re: Callback problems - by joco96 - 30.08.2009, 08:58
Re: Callback problems - by XPlatform - 30.08.2009, 16:04
Re: Callback problems - by joco96 - 30.08.2009, 19:40
Re: Callback problems - by Tony_Montana - 10.11.2009, 10:33
Re: Callback problems - by toby` - 20.02.2010, 21:16

Forum Jump:


Users browsing this thread: 1 Guest(s)