SA-MP Forums Archive
OnPlayerKeyStateChange [HELP!] - 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: OnPlayerKeyStateChange [HELP!] (/showthread.php?tid=153208)



OnPlayerKeyStateChange [HELP!] - Antonio [G-RP] - 07.06.2010

For some reason, my pawno takes this

pawn Код:
if(newkeys & KEY_JUMP) {
as both 'S' and 'Shift' whereas it is ONLY supposed to work as 'Shift'


Re: OnPlayerKeyStateChange [HELP!] - Anthony_Brassi - 07.06.2010

Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
For some reason, my pawno takes this

pawn Код:
if(newkeys & KEY_JUMP) {
as both 'S' and 'Shift' whereas it is ONLY supposed to work as 'Shift'
Mine does too.


Re: OnPlayerKeyStateChange [HELP!] - Antonio [G-RP] - 08.06.2010

Damn, cause now I cant use it for engine


Re: OnPlayerKeyStateChange [HELP!] - Anthony_Brassi - 08.06.2010

Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
Damn, cause now I cant use it for engine
exactly what i wanted it for ;/


Re: OnPlayerKeyStateChange [HELP!] - Antonio [G-RP] - 08.06.2010

Well I have a feature that automaticly turns off engine when you exit vehicle, so maybe I'll just remove the second half of my 'shift'