Callback in .inc... - 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 in .inc... (
/showthread.php?tid=448014)
Callback in .inc... -
introzen - 02.07.2013
Hello. Probably an easy question but I actually have no idea and I didn't find anything searching so here it comes:
How do I proceed if I would like to include a callback inside an .inc file when it's already forwarded in the gamemode?
In this case, I would like a /tpmenu. Which I have, though, it's so much text I'd rather put it inside an include. When I do so then, I get an error saying that I have 2 OnPlayerDialogs...
How do I fix this please?
Re: Callback in .inc... -
ReVo_ - 02.07.2013
y_hooks
Re: Callback in .inc... -
introzen - 02.07.2013
With y_hooks, do I replace all
in the gamemode with
Or do I use hook_ in all includes where I want to include a callback?