[Question] Connect to MYSQL in an include
#4

Just incase you want to use the ALS hooking method (this way you wont need to do anything outside of the include).

Inside the include
pawn Код:
public OnGameModeInit()
{
    // do stuff here above the funcidx function

    if (funcidx("ig_OnGameModeInit") != -1)
        return CallLocalFunction("ig_OnGameModeInit", "");
    return 1;
}

#if defined _ALS_OnGameModeInit
    #undef OnGameModeInit
#else
    #define _ALS_OnGameModeInit
#endif
#define OnGameModeInit ig_OnGameModeInit
forward ig_OnGameModeInit();
Reply


Messages In This Thread
[Question] Connect to MYSQL in an include - by Biesmen - 29.04.2011, 07:28
Re: [Question] Connect to MYSQL in an include - by Vince - 29.04.2011, 07:39
Re: [Question] Connect to MYSQL in an include - by Ash. - 29.04.2011, 08:07
Re: [Question] Connect to MYSQL in an include - by iggy1 - 29.04.2011, 08:15
Re: [Question] Connect to MYSQL in an include - by Biesmen - 29.04.2011, 09:28

Forum Jump:


Users browsing this thread: 1 Guest(s)