Callback problems
#4

Quote:
Originally Posted by Marcus09
1) No.
2) Your executing the callback if it cannot find the callback. Remove the !.
1) Ok
2) I know it calls it, but there is another problem...
When it calls the function the printf doesn't appear.
Like:
Plugin callback:
Код:
char 
	SomeString[256];
cell
	amx_addr,
	amx_ret,
	* amx_physAddr;
int
	amx_idx,
	SomeInt;
if (!amx_FindPublic(pAMX, "OnSomethingHappens", &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);
}
Pawno callback:
pawn Код:
public OnSomethingHappens(someint, somestring[]) {
    printf(somestring);
}
And then there are empty spaces in the server window.
Like:
"
Somebody joined the server.
<== Here is the printf. Nothing here
Somebody left the server.
"
And sometimes it getting crazy... It gets the last string, not the new :/.

So I don't know what's the problem...
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)