Fixed.
#1

Fixed.
Reply
#2

Use this : ?

pawn Код:
if ((newkeys && (KEY_LOOK_RIGHT || KEY_FIRE)) == (KEY_LOOK_RIGHT || KEY_FIRE) && (GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
Reply
#3

pawn Код:
if ((newkeys & (KEY_LOOK_RIGHT || KEY_FIRE)) == (KEY_LOOK_RIGHT || KEY_FIRE) && (GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
or

pawn Код:
if ((newkeys & (KEY_LOOK_RIGHT & KEY_FIRE)) == (KEY_LOOK_RIGHT & KEY_FIRE) && (GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
| = Invalid
|| = Correct
or

&
Reply
#4

Fixed
Reply
#5

* bumpkins *
Reply
#6

I'd do it like this

pawn Код:
if (newkeys & KEY_LOOK_RIGHT && newkeys & KEY_FIRE && GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
Not sure if that works =D. You may have to do it on 2 lines.
Reply
#7

Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
I have this now..

pawn Код:
if ((newkeys & (KEY_LOOK_RIGHT & KEY_FIRE) && GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
But I still get the error.
It looks like you have one unmatched parenthesis:

pawn Код:
if ((newkeys & (KEY_LOOK_RIGHT | KEY_FIRE)) && (GetPlayerState(playerid) == PLAYER_STATE_DRIVER))
Reply
#8

Thanks guys, Ill try these tomorrow
Reply
#9

Fixed
Reply
#10

Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
pawn Код:
if ((newkeys & (KEY_LOOK_RIGHT | KEY_FIRE)) && (GetPlayerState(playerid) == PLAYER_STATE_DRIVER))
Still error..
try if(newkeys) still error => its not this line!
Your code in the first post was correct
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)