Callback in .inc...
#1

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?
Reply
#2

y_hooks
Reply
#3

With y_hooks, do I replace all
pawn Код:
public
in the gamemode with
pawn Код:
hook
Or do I use hook_ in all includes where I want to include a callback?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)