Using callbacks in a include
#7

So, I'm supposed to do this:
ChocolateInclude
pawn Код:
public OnGameModeInit()
{
  //script
  if (funcidx("Chocolate_OnGameModeInit") != -1)
  {
    return CallLocalFunction("Chocolate_OnGameModeInit", "");
  }
  return 1;
}
#if defined _ALS_OnGameModeInit
  #undef OnGameModeInit
#else
  #define _ALS_OnGameModeInit
  #endif
#define OnGameModeInit Chocolate_OnGameModeInit
forward Chocolate_OnGameModeInit();
GameMode
pawn Код:
#include <ChocolateInclude>

public OnGameModeInit()
{
  //script
  return 1;
}
?
Reply


Messages In This Thread
Using callbacks in a include - by Remi-X - 29.11.2009, 11:26
Re: Using callbacks in a include - by saiberfun - 29.11.2009, 11:28
Re: Using callbacks in a include - by Luka P. - 29.11.2009, 11:29
Re: Using callbacks in a include - by Remi-X - 29.11.2009, 11:32
Re: Using callbacks in a include - by Zeex - 29.11.2009, 11:38
Re: Using callbacks in a include - by Luka P. - 29.11.2009, 11:44
Re: Using callbacks in a include - by Remi-X - 29.11.2009, 11:48
Re: Using callbacks in a include - by dice7 - 29.11.2009, 11:54
Re: Using callbacks in a include - by Remi-X - 29.11.2009, 11:59

Forum Jump:


Users browsing this thread: 5 Guest(s)