Custom Functions
#1

Would this work in an include for anything I might want to call on using a certain function?
Код:
stock SetPlayerHealth2 (playerid, Float:health)
{
SetPlayerHealth (playerid, health); //call a custom callback/function here
} stock SetPlayerPos2 (playerid, Float:x, Float:y, Float:z) {
SetPlayerPos (playerid, x, y, z); //call a custom callback/function here
} #define SetPlayerHealth SetPlayerHealth2 #define SetPlayerPos SetPlayerPos2
Would this work, or is there a way it can done otherwise?
Reply


Messages In This Thread
Custom Functions - by benyaminx - 13.07.2010, 10:03
Re: Custom Functions - by SpiderPork - 13.07.2010, 10:07
Re: Custom Functions - by benyaminx - 13.07.2010, 10:21
Re: Custom Functions - by RyDeR` - 13.07.2010, 11:01
Re: Custom Functions - by benyaminx - 13.07.2010, 12:10
Re: Custom Functions - by Hiddos - 13.07.2010, 12:12

Forum Jump:


Users browsing this thread: 1 Guest(s)