Why i get this warning?
#1

Hello i've scripted a little bit of a gamemode and i keep getting this warning
pawn Код:
warning 203: symbol is never used: "playerid"
And here is the line that is giving out the warning.
pawn Код:
stock GetClosestVehicle(playerid)
{
    new Float:x, Float:y, Float:z;
    new Float:dist, Float:closedist=9999, closeveh;
    for(new i=1; i < MAX_VEHICLES; i++)
    {
        if(GetVehiclePos(i, x, y, z))
        {
            dist = GetPlayerDistanceFromPoint(playerid, x, y, z);
            if(dist < closedist)
            {
                closedist = dist;
                closeveh = i;
            }
        }
    }
    return closeveh;
}
Can anybody help me i will give you rep! if you sussesfully help me!
Reply


Messages In This Thread
Why i get this warning? - by Tass007 - 28.10.2011, 22:14
Re: Why i get this warning? - by sanplayer - 28.10.2011, 22:15
Re: Why i get this warning? - by wumpyc - 28.10.2011, 22:16
Re: Why i get this warning? - by Tass007 - 28.10.2011, 22:17
Re: Why i get this warning? - by Kingunit - 28.10.2011, 22:18
Re: Why i get this warning? - by Tass007 - 28.10.2011, 22:19
Re: Why i get this warning? - by admantis - 28.10.2011, 22:20
Re: Why i get this warning? - by Tass007 - 28.10.2011, 22:21

Forum Jump:


Users browsing this thread: 1 Guest(s)