27.03.2011, 00:33
I just tried GetPlayerFacingAngle for my /loc command (locates a player and where they are) but I thought I should add directions like North, East, South and West. For the example for GetPlayerFacingAngle on the wiki, the code is this:
%0.2f = the direction in numbers
Instead of it showing me the directions in numbers, how can I get it to show (North), (East), (South), and (West) instead of like for example (200.91) etc...
pawn Код:
new Float:Angle, string[26];
GetPlayerFacingAngle(playerid, Angle);
format(string, sizeof(string), "Your facing angle: %0.2f", Angle);
SendClientMessage(playerid, 0xFFFFFFFF, string);
Instead of it showing me the directions in numbers, how can I get it to show (North), (East), (South), and (West) instead of like for example (200.91) etc...