KEY_CAPSLOCK
#1

Код:
if( newkeys == KEY_CAPSLOCK )
Код:
C:\Users\Labas\Desktop\MPG\gamemodes\MPG.pwn(6931) : error 017: undefined symbol "KEY_CAPSLOCK"
How do i make it work? How is that button called on pawno?
Reply
#2

Look here: https://sampwiki.blast.hk/wiki/GetPlayerKeys#Key_List
Reply
#3

But onfoot i have to press C not CAPSLOCK. :/
Reply
#4

There is no defines for keyboard keys
Reply
#5

What are you trying to activate (which action, like crouching)?

Also, I would suggest you use it like so, to prevent future problems:
pawn Код:
if( newkeys & KEY_WHATEVER )
Reply
#6

pawn Код:
if(newkeys & KEY_VEHICLE_HORN)
Not sure if it will work tho...
Reply
#7

pawn Код:
if (newkeys & KEY_CROUCH
maybe..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)