Custom Functions
#4

This will work:
pawn Код:
#define SetPlayerHealth SetPlayerHealth2
#define SetPlayerPos SetPlayerPos2
Yes but return them.

pawn Код:
stock SetPlayerHealth2 (playerid, Float:health)
{
        return SetPlayerHealth (playerid, health); //call a custom callback/function here
}

stock SetPlayerPos2 (playerid, Float:x, Float:y, Float:z)
{
        return SetPlayerPos (playerid, x, y, z); //call a custom callback/function here
}
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)