Multiple keys with OnPlayerKeyStateChange
#5

Quote:
Originally Posted by ******
Посмотреть сообщение
gamer_Z: That won't work if you are holding more than one key down, which is why the "PRESSED" etc. macros were created (https://sampwiki.blast.hk/wiki/OnPlayerK...heck_for_a_key)

[RVRP]Tyler:

That should be the correct code, could I see the macros you are using to confirm they are correct?
Hmm thanks for that <lol>.
Now I know what the & does and I can now use it in other things than just only using it for detecting keys.


@Tyler
Try using the same code in Two if statements but with other if's (one for key 1 and other for key 2) and let us know your results, maybe some other script is called when key_action is called?

Also you see on the wiki:
Quote:

Pressed multiple keys:
if (PRESSED( KEY_FIRE | KEY_CROUCH ))

But I think that is not applicable for you(?)
Reply


Messages In This Thread
Multiple keys with OnPlayerKeyStateChange - by [RVRP]Tyler - 08.06.2011, 23:04
Re: Multiple keys with OnPlayerKeyStateChange - by Gamer_Z - 08.06.2011, 23:19
Re: Multiple keys with OnPlayerKeyStateChange - by [RVRP]Tyler - 09.06.2011, 21:16
Re: Multiple keys with OnPlayerKeyStateChange - by [RVRP]Tyler - 12.06.2011, 23:20
Re: Multiple keys with OnPlayerKeyStateChange - by Gamer_Z - 13.06.2011, 00:37
Re: Multiple keys with OnPlayerKeyStateChange - by [RVRP]Tyler - 16.06.2011, 17:29

Forum Jump:


Users browsing this thread: 2 Guest(s)