04.09.2015, 11:28
I have 5 coordonate and how I check who is closet from me?
I try this but I don't know how to make
I try this but I don't know how to make
Код HTML:
GetClosetcoordonate(playerid)
{
new Float:distance,Float:distance2;
distance = GetPlayerDistanceFromPoint(playerid, 1929.37,-1776.23,13.546);
if(distance>nextdistance)
distance = GetPlayerDistanceFromPoint(playerid,1833.11,-1842.56,13.578);
distance = GetPlayerDistanceFromPoint(playerid,1833.11,-1842.56,13.578);
distance = GetPlayerDistanceFromPoint(playerid,1533.11,-842.56,3.578);
distance = GetPlayerDistanceFromPoint(playerid,-53.11,-12.56,6.578);
return DistanceCloset;
}



;, just read again your code, and you will see if this make since.
ize.
, don't get me wrong or something, but this is some basics stuff, you can give me 15 day to memorize the functions. But if you wan't to see my code, post your code correctly first.