Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

warning help

$
0
0
warning 202: number of arguments does not match definition

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(playeridLSAMMU_ACTORSFAMMU_ACTORLVAMMU_ACTOR))
    {
        return 
1;
    }
    return 
0;



when i try without LVAMMU_ACTOR it work good

PHP Code:

stock InRangeOfAmmuActors(playerid)
{
    if (
IsPlayerInRangeOfActor(playeridLSAMMU_ACTORSFAMMU_ACTOR))
    {
        return 
1;
    }
    return 
0;


here is IsPlayerInRangeOfActor

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;
}

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>