y_hooks error.
#1

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

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).
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)