17.09.2009, 13:43
For the key detection use "&" (bit AND) and "|" (bit OR) operators, like this:
See pawn-lang.pdf and wiki for more information.
No, this code is ok and should not cause any compiler warnings.
EDIT: https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
pawn Код:
if (newkeys & ((KEY_FIRE | KEY_ACTION) & (KEY_LOOK_RIGHT | KEY_LOOK_LEFT)))
Quote:
|
Originally Posted by Finn
GetPlayerPos(playerid, Float:x, Float:y, Float:z);
SetPlayerPos(playerid, Float:x+10, Float:y+1, Float:z); Remove the red parts (see above) from your code and it'll go fine. |
EDIT: https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
