Whats wrong with this gteam check?
#1

pawn Код:
if(gTeam[playerid] != LSPD1 || LSPD2 || CIA || ARMY || SWAT || FBI ) return SendClientMessage(playerid, COLOR_WHITE, "you need to be police");
It always tells me "you need to be police"
Reply
#2

pawn Код:
if(gTeam[playerid] != LSPD1 || gTeam[playerid] != LSPD2 || gTeam[playerid] != CIA || gTeam[playerid] != ARMY || gTeam[playerid] != SWAT || gTeam[playerid] != FBI )
Reply
#3

Well same thing happens even with that code Maybe && instead of ||? I know that on checkpoints you can't use || you have to use &&
Reply
#4

Whoops. You're right, it should be
pawn Код:
if(gTeam[playerid] != LSPD1 && gTeam[playerid] != LSPD2 && gTeam[playerid] != CIA && gTeam[playerid] != ARMY && gTeam[playerid] != SWAT && gTeam[playerid] != FBI)
sorry about that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)