Some function trouble
#3

Or you can use a custom function, add this to somewhere (maybe the bottom) of your code:

pawn Код:
stock GivePlayerHealth(playerid, Float:amount)
{
     static Float:health;
     GetPlayerHealth(playerid, health);
     SetPlayerHealth(playerid, health+amount);
}
Then instead of having a block of code to do one thing, just call the function above.

(GivePlayerHealth(playerid, amount))
Reply


Messages In This Thread
Some function trouble - by DjAdy - 12.06.2011, 10:26
Re: Some function trouble - by Sinner - 12.06.2011, 10:29
Re: Some function trouble - by Ash. - 12.06.2011, 10:32
Re: Some function trouble - by DjAdy - 12.06.2011, 13:28

Forum Jump:


Users browsing this thread: 1 Guest(s)