Why are there so few "return" functions with SA:MP?
#2

Because one function stores the float and the other manipulates. You can easily modify that to suit your need. This, suppose, is just the way PAWN works.

Code:
stock Float:GetHP(playerid) {
new Float:health;
GetPlayerHealth(playerid, health);
return _:health;
}

// Now you can do your simplified action using GetHP.
//Not sure about tagging the Float:
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)