Having some key problems
#4

This is one of those cases where it might actually be useful to use == instead of & for comparison, because you want to know if they press a single key. e.g.:
pawn Код:
if ((newkeys == KEY_JUMP) && !(oldkeys & KEY_JUMP))
Unsure if it works, but worth a try.
Reply


Messages In This Thread
Having some key problems - by JaKe Elite - 27.10.2014, 12:47
Re: Having some key problems - by Crayder - 27.10.2014, 12:49
Re: Having some key problems - by JaKe Elite - 28.10.2014, 11:05
Re: Having some key problems - by Vince - 28.10.2014, 11:09
Re: Having some key problems - by Threshold - 28.10.2014, 11:46
Re: Having some key problems - by JaKe Elite - 28.10.2014, 12:06
Re: Having some key problems - by Threshold - 28.10.2014, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)