SA-MP Forums Archive
KEY_CAPSLOCK - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: KEY_CAPSLOCK (/showthread.php?tid=204276)



KEY_CAPSLOCK - Osviux - 29.12.2010

Код:
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?


Re: KEY_CAPSLOCK - Andrejs - 29.12.2010

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


Re: KEY_CAPSLOCK - Osviux - 29.12.2010

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


Re: KEY_CAPSLOCK - Andrejs - 29.12.2010

There is no defines for keyboard keys


Re: KEY_CAPSLOCK - Grim_ - 29.12.2010

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 )



Re: KEY_CAPSLOCK - Mean - 29.12.2010

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


Re: KEY_CAPSLOCK - Mr.Jvxmc - 29.12.2010

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