14.05.2017, 21:43
Код:
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); }