Closet Distance! [REP]
#1

I have 5 coordonate and how I check who is closet from me?

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;
}
Reply


Messages In This Thread
Closet Distance! [REP] - by zeth98 - 04.09.2015, 11:28
Re: Closet Distance! [REP] - by Battlezone - 04.09.2015, 11:58
Re: Closet Distance! [REP] - by zeth98 - 04.09.2015, 12:03
Re: Closet Distance! [REP] - by Battlezone - 04.09.2015, 12:09
Re: Closet Distance! [REP] - by Freezo - 04.09.2015, 12:23
Re: Closet Distance! [REP] - by Battlezone - 04.09.2015, 12:33
Re: Closet Distance! [REP] - by Freezo - 04.09.2015, 12:38
Re: Closet Distance! [REP] - by Battlezone - 04.09.2015, 12:45
Re: Closet Distance! [REP] - by Freezo - 04.09.2015, 13:06
Re: Closet Distance! [REP] - by Battlezone - 04.09.2015, 13:09

Forum Jump:


Users browsing this thread: 4 Guest(s)