Question about ALS methood
#5

like this:

Код:
stock MyLib_GivePlayerMoney(playerid, amount)
{
	// Call the old version, no need to check if it exists.
	GivePlayerMoney(playerid, amount);
	return 1;
}
// Has this been hooked already?
#if defined _ALS_GivePlayerMoney
	#undef GivePlayerMoney
#else
	#define _ALS_GivePlayerMoney
#endif
// Reroute future calls to our function.
#define GivePlayerMoney MyLib_GivePlayerMoney
Reply


Messages In This Thread
Question about ALS methood - by Kenway - 18.02.2015, 19:11
Re: Question about ALS methood - by Blademaster680 - 18.02.2015, 19:19
Re: Question about ALS methood - by Kenway - 18.02.2015, 19:21
Re: Question about ALS methood - by Blademaster680 - 18.02.2015, 19:22
Re: Question about ALS methood - by Kenway - 18.02.2015, 19:24
Re: Question about ALS methood - by Blademaster680 - 18.02.2015, 19:28
Re: Question about ALS methood - by Blademaster680 - 18.02.2015, 19:32
Re: Question about ALS methood - by Kenway - 18.02.2015, 19:32
Re: Question about ALS methood - by Maximus0 - 18.02.2015, 19:37
Re: Question about ALS methood - by Kenway - 18.02.2015, 19:58

Forum Jump:


Users browsing this thread: 1 Guest(s)