Quote:
Originally Posted by victory88
PHP код:
stock IsPlayerInRangeOfActor(playerid, actorid, Float:radius = 5.0)
IsPlayerInRangeOfActor requires three arguments, playerid, actorid and the radius in a float value.
PHP код:
if (IsPlayerInRangeOfActor(playerid, Boxer))
{
ShowPlayerFooter(playerid, "Hi!", 5000);
}
When you check the actor range you do not provide a the third argument, range. e.g (playerid, Boxer, 13.0)
|
You are wrong, by using
Float:radius = 5.0, he is setting a default value to 5.0, it means if he dont enter a specific radius, it will be 5.0