YSI Documentation
#9

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:
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;
}
Throws the following error:
Код:
classes.pwn(53) : error 021: symbol already defined: "@yH_OnGameModeInit@006"
classes.pwn(71) : error 021: symbol already defined: "@yH_OnGameModeInit@006"
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.
Reply


Messages In This Thread
YSI Documentation - by nG Inverse - 02.07.2017, 20:04
Re: YSI Documentation - by Eoussama - 02.07.2017, 20:19
Re: YSI Documentation - by nG Inverse - 03.07.2017, 02:31
Re: YSI Documentation - by Meller - 03.07.2017, 11:51
Re: YSI Documentation - by nG Inverse - 03.07.2017, 16:36
Re: YSI Documentation - by Dayrion - 03.07.2017, 16:55
Re: YSI Documentation - by Kaperstone - 03.07.2017, 17:23
Re: YSI Documentation - by Meller - 03.07.2017, 18:35
Re: YSI Documentation - by nG Inverse - 03.07.2017, 20:20
Re: YSI Documentation - by Meller - 03.07.2017, 20:24

Forum Jump:


Users browsing this thread: 1 Guest(s)