2019-07-24, 09:02 PM
I have the following files:
I'm getting this error:?
Is it possible to use hooks like this and if yes, what is my mistake?
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?