SCAR Code:
MakeCompass(FloatToStr(Deg));
Lol?
Basically it's like that:
For example...
Input needs to be string not extended
and what's the point getting Deg right before compass fixing?
Uh, I t said to turbobk wrong...
It will basically change compass to all angles... E, S, W...
I don't know what I done...:duh:
Edit:
This may work:
SCAR Code:
MakeCompass(FloatToStr(Deg));
Lol?
Basically it's like that:
For example...
Input needs to be string not extended
and what's the point getting Deg right before compass fixing?
Uh, I t said to turbobk wrong...
It will basically change compass to all angles... E, S, W...
I don't know what I done...:duh:
I have no idea how to figure out facing when you're N.
Edit:
This at beginning
SCAR Code:
Deg := Round(rs_getcompassangledegrees);
if (deg > 315 and deg =< 0) or (deg >= 0 and deg < 45) then Facing := 'N';
if deg > 45 and deg < 135 then Facing := 'E';
if deg > 135 and deg < 225 then Facing := 'S';
if deg > 225 and deg < 315then Facing := 'W';
And this after antiban:
SCAR Code:
case facing of
'N' : if not InRange(Round(rs_getcompassangledegrees), 315, 360) and
not InRange(Round(rs_getcompassangledegrees), 0, 45) then MakeCompass(Facing);
'E' : if not InRange(Round(rs_getcompassangledegrees), 405, 495) then MakeCompass(Facing);
'S' : if not InRange(Round(rs_getcompassangledegrees), 495, 585) then MakeCompass(Facing);
'W' : if not InRange(Round(rs_getcompassangledegrees), 585, 675) then MakeCompass(Facing);
end;
It should work... but I'm not sure...