need help with getting coordinates
#2

Код:
new Float:distance = GetVehicleDistanceFromPoint(meddzip[0]|| meddzip[1]|| meddzip[2]||meddzip[3], vehx, vehy, vehz);
??
if you have more then 1 vehicleID then use more then one function to get the distance...
e.g. make it into a loop ?
Код:
GetPlayerPos(playerid, Px, Py, Pz);
new Float:Px, Float:Py, Float:Pz,new Float:distance[3];
for (new i = 0; i < 4; i++)
{
   distance[i] = GetVehicleDistanceFromPoint(meddzip[i], vehx, vehy, vehz);
}
distance[??] will hold the multiple vehicleID with the distance between the car and the palyerposition
Reply


Messages In This Thread
need help with getting coordinates - by whip - 14.05.2017, 19:59
Re: need help with getting coordinates - by park4bmx - 14.05.2017, 21:43
Re: need help with getting coordinates - by whip - 15.05.2017, 11:47

Forum Jump:


Users browsing this thread: 1 Guest(s)