Help getting angles..
#1

hey i need help with how the player is drifting i got this::::::


pawn Код:
new Float:z_rot;
        if(PRESSING(newkeys, KEY_HANDBRAKE))
        {
          GetVehicleZAngle(currentveh, z_rot);
          format(angle, sizeof(angle),"Angle:%d", z_rot);
        }
but i get like 35345345435335
Reply
#2

replace %d with %f

%d or %i mean integer (exact values), while %f is for floats (decimal values)
Reply
#3

Quote:
Originally Posted by Rav
replace %d with %f

%d or %i mean integer (exact values), while %f is for floats (decimal values)
ty now i need is that if you press your handbrake than it shows how much degree's you turned, so not the angles the car is, how can i do that ? :X
Reply
#4

hmm...
newkeys = space oldkeys = something ( get angle )
newkeys = something oldkeys = space ( get angle and count angle )
Reply
#5

when you use %d you can just do %3d then you would only see the first 3
Reply
#6

Quote:
Originally Posted by [PERG
prolol ]
when you use %d you can just do %3d then you would only see the first 3
its not the solution i need
Reply
#7

Quote:
Originally Posted by Pandabeer1337
hey i need help with how the player is drifting i got this::::::


pawn Код:
new Float:z_rot;
        if(PRESSING(newkeys, KEY_HANDBRAKE))
        {
          GetVehicleZAngle(currentveh, z_rot);
          format(angle, sizeof(angle),"Angle:%d", z_rot);
        }
[but i get like 35345345435335
i tought maybe you wanted something to fix it
Reply
#8

Quote:
Originally Posted by [PERG
prolol ]
Quote:
Originally Posted by Pandabeer1337
hey i need help with how the player is drifting i got this::::::


pawn Код:
new Float:z_rot;
        if(PRESSING(newkeys, KEY_HANDBRAKE))
        {
          GetVehicleZAngle(currentveh, z_rot);
          format(angle, sizeof(angle),"Angle:%d", z_rot);
        }
[but i get like 35345345435335
i tought maybe you wanted something to fix it
i need this solution now

Quote:
Originally Posted by Pandabeer1337
i need is that if you press your handbrake than it shows how much degree's you turned, so not the angles the car is, how can i do that ? :X
Reply
#9

Quote:
Originally Posted by Pandabeer1337
Quote:
Originally Posted by [PERG
prolol ]
Quote:
Originally Posted by Pandabeer1337
hey i need help with how the player is drifting i got this::::::


pawn Код:
new Float:z_rot;
        if(PRESSING(newkeys, KEY_HANDBRAKE))
        {
          GetVehicleZAngle(currentveh, z_rot);
          format(angle, sizeof(angle),"Angle:%d", z_rot);
        }
[but i get like 35345345435335
i tought maybe you wanted something to fix it
i need this solution now

Quote:
Originally Posted by Pandabeer1337
i need is that if you press your handbrake than it shows how much degree's you turned, so not the angles the car is, how can i do that ? :X
ask henk for it
Reply
#10

Quote:
Originally Posted by [LDT
LuxurY ]
hmm...
newkeys = space oldkeys = something ( get angle )
newkeys = something oldkeys = space ( get angle and count angle )
can you maybe work it out a bit more cuz i cant make anything out of this ;p
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)