21.08.2011, 16:43
Ok, so..
Usually, I use GetPlayerFacingAngle to get a players heading, I face easterly, and it returns 90.0, which is correct.
However, today, it says 270.0 when I face easterly, and 90.0 when I face westerly. No code change, and it's not a problem with my code.
360.0/0.0 is North. 90.0 is East. 180.0 is South. 270.0 is West.
Why does it say 270.0 is East, and 90.0 is West?
Usually, I use GetPlayerFacingAngle to get a players heading, I face easterly, and it returns 90.0, which is correct.
However, today, it says 270.0 when I face easterly, and 90.0 when I face westerly. No code change, and it's not a problem with my code.
pawn Code:
new Float:Angle;
GetPlayerFacingAngle(playerid, Angle);
format(str, sizeof(str), "Your heading is: %f", Angle);
SendClientMessage(playerid, 0xFFFFFFFF, str);
Why does it say 270.0 is East, and 90.0 is West?