2019-06-07, 03:54 PM
(This post was last modified: 2019-06-08, 12:59 PM by JustMichael.)
I have a problem using y_hooks:
I have the main gamemode (main.pwn), and two "modules" that are included in it: "module1.inc" and "module2.inc".
In both of them, I have to use y_hooks. From what I knew, you had to reinclude y_hooks if you wanted to hook to the same function, so at top of each module, I have
But I get a "symbol already defined" error in "module2" for the callbacks that have already been hooked to in the first one.
I have the main gamemode (main.pwn), and two "modules" that are included in it: "module1.inc" and "module2.inc".
In both of them, I have to use y_hooks. From what I knew, you had to reinclude y_hooks if you wanted to hook to the same function, so at top of each module, I have
Code:
#include "..\include\YSI\y_hooks.inc"
But I get a "symbol already defined" error in "module2" for the callbacks that have already been hooked to in the first one.