29.08.2009, 14:33
Quote:
Originally Posted by Marcus09
1) No.
2) Your executing the callback if it cannot find the callback. Remove the !. |
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); }
pawn Код:
public OnSomethingHappens(someint, somestring[]) {
printf(somestring);
}
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...