[HELP] How do i make an OR thing (see post for example)
#1

Hi is have a problem here it is:
I want to make an OR line her is an example of what i mean:
if (PlayerInfo[playerid][pMember] == 0 OR PlayerInfo[playerid][pLeader] == 0)
I tried but it wont work
Reply
#2

pawn Код:
if (PlayerInfo[playerid][pMember] || 0 OR PlayerInfo[playerid][pLeader] == 0)
Right Alt + <

|||||||||||
Reply
#3

Quote:
Originally Posted by ДitisOnHuora
pawn Код:
if (PlayerInfo[playerid][pMember] || 0 OR PlayerInfo[playerid][pLeader] == 0)
Right Alt + <

|||||||||||
uhhmmm that didn't work
Reply
#4

pawn Код:
if (PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
|| = OR
&& = And
Reply
#5

Quote:
Originally Posted by Perker12345
pawn Код:
if (PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
|| = OR
&& = And
Like Perker sayd.
Reply
#6

Quote:
Originally Posted by Perker12345
pawn Код:
if (PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
|| = OR
&& = And
This doesn't work if i do || i still have to be both so it seems my server sees || ad && or something how can this happen?
Reply
#7

Show us your code, or read wiki.sa-mp.com beginner's tutorial.

There is no other symbol or method for 'OR'. You're just doing something wrong.
Reply
#8

Well what are you using it for? If someone is a leader arn't they going to be a member anyway?
Reply
#9

i would say that || is or but OR isnt ever used..atleast i never seen it used before
Reply
#10

Quote:
Originally Posted by Joe Staff
Show us your code, or read wiki.sa-mp.com beginner's tutorial.

There is no other symbol or method for 'OR'. You're just doing something wrong.
I knew it had to be || but it suddenly didn't work anymore so i think there's something wrong with my pInfo vecause i inserted a new one pPriv
and i think that makes it that way
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)