Member check.
#1

How could I make this so a member of faction 1 and 2 could use it?,

Код:
  if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 1)
Reply
#2

pawn Код:
if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2)
|| is the operator for or.
Reply
#3

Hi there,

That couldn't work. You should always separate statements with parentheses. Like this:
pawn Код:
if(OnDuty[playerid] != 1 && (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2))
Have fun scripting.

Kind regards,

Francis Morissette
SA-MP Scripter
http://sa-mp.com
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)