Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Detect two keys

$
0
0
Hi, I'm trying to detect if player pressed N and H at the same time so I copied it exactly how it is in wiki, but it's not working.
This is what it looks like:

Code:

//OnPlayerKeyStateChange...
if ((newkeys & (KEY_NO | KEY_CTRL_BACK)) == (KEY_NO | KEY_CTRL_BACK) && (oldkeys & (KEY_NO | KEY_CTRL_BACK)) != (KEY_NO | KEY_CTRL_BACK))

What's wrong here?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>