warning 202: number of arguments does not match definition
problem is on this line
when i try without LVAMMU_ACTOR it work good
here is IsPlayerInRangeOfActor
problem is on this line
PHP Code:
"if (IsPlayerInRangeOfActor(playerid, LSAMMU_ACTOR, SFAMMU_ACTOR, LVAMMU_ACTOR))" //cuz i added LVAMMU_ACTOR
PHP Code:
stock InRangeOfAmmuActors(playerid)
{
if (IsPlayerInRangeOfActor(playerid, LSAMMU_ACTOR, SFAMMU_ACTOR, LVAMMU_ACTOR))
{
return 1;
}
return 0;
}
when i try without LVAMMU_ACTOR it work good
PHP Code:
stock InRangeOfAmmuActors(playerid)
{
if (IsPlayerInRangeOfActor(playerid, LSAMMU_ACTOR, SFAMMU_ACTOR))
{
return 1;
}
return 0;
}
Quote:
stock IsPlayerInRangeOfActor(playerid, actorid, Float:radius = 3.0) { new Float:x, Float:y, Float:z; if (GetActorPos(actorid, x, y, z)) { return IsPlayerInRangeOfPoint(playerid, radius, x, y, z); } return 0; } |