Hooking callbacks
#6

If you are only going to be using the includes within your gamemode, you could also directly call the function to the include, ex:
pawn Код:
public OnPlayerConnect(playerid)
{
        houses_OnPlayerConnect(playerid);
        return 1;
}

// houses include
houses_OnPlayerConnect(playerid)
{
      // do something
      return 1;
}
If you'd rather use hooking, refer to this. It should explain what the code is doing and how to use it.
Reply


Messages In This Thread
Hooking callbacks - by Jonesy96 - 01.06.2016, 23:34
Re: Hooking callbacks - by OmegaKiller72 - 01.06.2016, 23:53
Re: Hooking callbacks - by OmegaKiller72 - 01.06.2016, 23:56
Re: Hooking callbacks - by Jonesy96 - 02.06.2016, 00:00
Re: Hooking callbacks - by OmegaKiller72 - 02.06.2016, 00:15
Re: Hooking callbacks - by Abagail - 02.06.2016, 00:16
Re: Hooking callbacks - by Jonesy96 - 02.06.2016, 00:35
Re: Hooking callbacks - by Sew_Sumi - 02.06.2016, 01:59
Re: Hooking callbacks - by iggy1 - 02.06.2016, 02:14
Re: Hooking callbacks - by Jonesy96 - 02.06.2016, 13:35

Forum Jump:


Users browsing this thread: 1 Guest(s)