• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] y_hooks - multi level hooking problem
#1
I have the following files:



Code:
====== gamemodes/mymode.pwn?======

#include <a_samp>

#include <YSI_Coding\y_hooks>

#include .\src\first.pwn



public OnGameModeInit()

{

? ??printf("mymode.pwn");

}





======?gamemodes/src/first.pwn?======

#include <YSI_Coding\y_hooks>

#include .\src\second.pwn



hook OnGameModeInit()

{

? ? printf("first.pwn");

}







======?gamemodes/src/second.pwn?======

#include <YSI_Coding\y_hooks>



hook OnGameModeInit()

{

? ? printf("second.pwn");

}





I'm getting this error:?
Code:
.\first.pwn(6) : error 021: symbol already defined: "@yH_OnGameModeInit@002"



Is it possible to use hooks like this and if yes, what is my mistake?
  Reply


Messages In This Thread
y_hooks - multi level hooking problem - by Luciano - 2019-07-24, 09:02 PM

Forum Jump: