Anti-DB script help
#7

For the key detection use "&" (bit AND) and "|" (bit OR) operators, like this:
pawn Код:
if (newkeys & ((KEY_FIRE | KEY_ACTION) & (KEY_LOOK_RIGHT | KEY_LOOK_LEFT)))
See pawn-lang.pdf and wiki for more information.

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.
No, this code is ok and should not cause any compiler warnings.

EDIT: https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Reply


Messages In This Thread
Anti-DB script help - by [SOB]Chris - 13.09.2009, 21:15
Re: Anti-DB script help - by [SOB]Chris - 13.09.2009, 22:00
Re: Anti-DB script help - by coole210 - 13.09.2009, 22:15
Re: Anti-DB script help - by [SOB]Chris - 13.09.2009, 22:21
Re: Anti-DB script help - by Blades - 17.09.2009, 13:10
Re: Anti-DB script help - by Finn - 17.09.2009, 13:32
Re: Anti-DB script help - by Zeex - 17.09.2009, 13:43
Re: Anti-DB script help - by Finn - 17.09.2009, 13:49

Forum Jump:


Users browsing this thread: 1 Guest(s)