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

pawn Code:
stock Float:GetPlayerHealthEx(playerid) {
    new Float:health;
    GetPlayerHealth(playerid, health);
    return health;
}
It wouldn't be possible the other way around, maybe that's a reason. That or it was more efficient to do it with call-by-reference functions.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)