Callback hooking - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Callback hooking (
/showthread.php?tid=439097)
Callback hooking -
B-Matt - 23.05.2013
I have include file, where i hooked few callbacks. Everything is good, but on two callbacks, warning's pops up.
Code:
pawn Код:
return CallLocalFunction("P_OnPlayerClickTextDraw", "ii", playerid, clickedid);
return CallLocalFunction("P_OnPlayerClickTextDraw","ii", playerid, playertextid);
Warning: "Tag mismatch."
Yes I treid with "dd", "is" etc.
Re: Callback hooking -
B-Matt - 23.05.2013
I can't use y_hooks because gamemode that I edit can't use newer YSI. I don't know why, I updated all of mine include files and debugged gamemode but still compiler crash at beggining.
AW: Callback hooking -
IPrototypeI - 23.05.2013
Then work with state maschine like ****** even wrote.
The latest version of ALS hooks
https://sampforum.blast.hk/showthread.php?tid=387600
Re: AW: Callback hooking -
B-Matt - 24.05.2013
Quote:
Originally Posted by IPrototypeI
|
Thank you. I will try this hooking option.