13.06.2011, 00:37
Quote:
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? |
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 )) |