SA-MP Forums Archive
y_hooks error. - 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: y_hooks error. (/showthread.php?tid=622338)



y_hooks error. [ not solved ] - Gusteakas - 20.11.2016

hello.

I have tried to hook OnGameModeInit callback for the second time and I got an error which says:

Код:
error 021: symbol already defined: "@yH_OnDialogResponse@002"
error 021: symbol already defined: "@yH_OnDialogResponse@002"
What could it be? Is there a way to fix this and hook any callback multiple times?


Re: y_hooks error. - Abagail - 21.11.2016

I am not too familiar with y_hooks but it's possible you might have OnDialogResponse hooked more than once in the same script(search for "hook OnDialogResponse" through the script and includes).


Re: y_hooks error. - Gusteakas - 21.11.2016

You are right. I tried hooking it more than once. I did one hook in for example police.pwn, and now I am trying to hook it in taxi.pwn. I want to seperate all the jobs and don't know if it is possible to hook more than once.