28.10.2011, 22:14
Hello i've scripted a little bit of a gamemode and i keep getting this warning
And here is the line that is giving out the warning.
Can anybody help me i will give you rep! if you sussesfully help me!
pawn Код:
warning 203: symbol is never used: "playerid"
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;
}