[help] i can't fix this so it also works for negative values
#4

Quote:
Originally Posted by °ғαιιοцт°
Quote:
Originally Posted by [LDT
LuxurY ]
please check this topic http://forum.sa-mp.com/index.php?topic=45996.0
Quote:

stock Float:AngleToPoint(Float,Float:y,Float1,Float: y1)
{
new Float:newang = atan(floatabs((x-x1)/(y-y1)));
if (x1 <= x && y1 >= y) newang += 90.0;
else if (x1 < x && y1 < y) newang += 180.0;
else if (x1 >= x && y1 <= y) newang += 270.0;
if (newang >= 360.0) newang = 0.0;
return newang;
}

so i was on my right way
does this code works?
certainly
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)