03.07.2017, 20:20
Thanks for the responses. I'll take a look through those links and try and piece together what I need.
This is a current issue I've run into. It seems y_hooks doesn't support hooked functions of different states. For example:
Throws the following error:
Any ideas on getting around this without editing y_hooks itself? I would guess this could be avoided by putting the definitions in different files. Though that would be my last resort due to the script layout.
This is a current issue I've run into. It seems y_hooks doesn't support hooked functions of different states. For example:
pawn Код:
hook OnGameModeInit()
{
g_ActiveTeams[ATTACK] = Group_Create("Attack");
g_ActiveTeams[DEFEND] = Group_Create("Defend");
return 1;
}
hook OnGameModeInit() <currentMode:mode1>
{
g_ActiveClasses[...] = Class_AddWithGroupSet(Group: DEFEND, 287, ...);
// ...
return 1;
}
hook OnGameModeInit() <currentMode:mode2>
{
// stop compiler warning
return 1;
}
Код:
classes.pwn(53) : error 021: symbol already defined: "@yH_OnGameModeInit@006" classes.pwn(71) : error 021: symbol already defined: "@yH_OnGameModeInit@006"