Quote:
Originally Posted by Crayder
pawn Код:
new shortest=-1, Float:shortdistance=-1; for(new x; x<8; x++) { if(GetPlayerDistanceFromPoint(playerid, pos[x][PosX], pos[x][PosY], pos[x][PosZ]) < shortdistance) { shortest = x; shortdistance = GetPlayerDistanceFromPoint(playerid, pos[x][PosX], pos[x][PosY], pos[x][PosZ]); } }
Wrote quickly but you should get the idea. I typed this on my iPad so it's just a representation.
|
I don't quite understand what this code does, could you compare these checkpoints for me?
2194.9402,1991.0087,12.2969
1937.5569,2307.2969,10.8203
2452.4729,2065.1914,10.8203
2546.5164,1972.6677,10.8203
2884.5542,2454.0464,11.0690
2117.5156,896.7753,11.1797