Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by AbyssMorgan
not important, it gives the parameters that will understand every person, not just you
|
You are the only person here that doesn't know what latitude and longitude is.
Also:
pawn Код:
stock CompRotationFloat(Float:rotation,&Float:cr){
cr = rotation;
while(cr < 0.0) cr += 360.0;
while(cr >= 360.0) cr -= 360.0;
}
Use a while loop. One single subtraction or addition could return adverse numbers. Using a while loop will make sure the number is more than 0 and less than 360 no matter what the input is.