Hooking, Did i code it right?
#1

pawn Code:
public OnGameModeInit()
{
    BACKG = TextDrawCreate( BACKG_ANCHOR_X, BACKG_ANCHOR_Y, " ");
    #if defined OnGameModeInit
    #undef OnGameModeInit
    #endif
    reg_OnGameModeInit();
    return 1;
}
It should check if OnGameModeInit was already defined, and undefine it so it can have its own define. I'm just wondering if it will work like this.
Reply


Messages In This Thread
Hooking, Did i code it right? - by dowster - 08.09.2011, 02:35
Re: Hooking, Did i code it right? - by JaTochNietDan - 08.09.2011, 03:03
Re: Hooking, Did i code it right? - by dowster - 08.09.2011, 03:16

Forum Jump:


Users browsing this thread: 1 Guest(s)