02.11.2011, 19:45
pawn Код:
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;
}
pawn Код:
test.pwn(567) : error 025: function heading differs from prototype
test.pwn(575) : error 004: function "GetPlayerDistanceFromPoint" is not implemented