Posts: 587
Threads: 128
Joined: Jun 2008
Reputation:
0
Hello!
I have been searching for a compass but have not found one.
so does anyone know where to get one? or help me how to create on?
Posts: 1,047
Threads: 23
Joined: Jun 2009
you can get the player roation with GetPlayerFacingAngle . then just make a nice textdraw that shows your direction :P
Posts: 1,047
Threads: 23
Joined: Jun 2009
Quote:
Originally Posted by cruising
text draws are way to hard for me
And i was looking on wiki and found this
pawn Код:
new Float:Angle, string[26]; GetPlayerFacingAngle(playerid, Angle); format(string, sizeof(string), "Your facing angle: %0.2f", Angle); SendClientMessage(playerid, 0xFFFFFFFF, string);
should it be like this os something?
pawn Код:
public(playerid,Float:Angle) { new Float:Angle, string[26]; format(string, sizeof(string), "Your facing angle: %0.2f", Angle); SendClientMessage(playerid, 0xFFFFFFFF, string); return ; }
|
pawn Код:
new Float:Angle, string[26];
GetPlayerFacingAngle(playerid, Angle);
format(string, sizeof(string), "Your facing angle: %0.2f", Angle);
SendClientMessage(playerid, 0xFFFFFFFF, string);
>>
pawn Код:
new Float:Angle, string[26];
GetPlayerFacingAngle(playerid, Angle);
format(string, sizeof(string), "Direction: %0.0f grades", Angle);
TextDrawSetString(TextDrawID,string);
try that :P
Check out some TD tutorials before you go on.
Posts: 1,047
Threads: 23
Joined: Jun 2009
you can define a callback in this way (not the way you do):
also your warning means that you have multiple times 'new string' defined, you need to change string to some other variable name.