[HELP] Problem with a small command
#1

I got a /giverank command to the LAE Force on my Roleplay Script.
The LAE Force got TEAM_LSPD, TEAM_FBI and TEAM_LSER, the problem is, only TEAM_LSPD can use the /giverank command, I want every team to be able to use it.

I've tried this but it didn't work, TEAM_LSPD still only got the rights to it.

Код:
if(gTeam[playerid] == TEAM_LSPD && TEAM_FBI && TEAM_LSER)
Thanks for helping me out
Reply
#2

Код:
if(gTeam[playerid] == TEAM_LSPD || gTeam[playerid] == TEAM_FBI ||gTeam[playerid] == TEAM_LSER)
|| = or
&& = And
Reply
#3

Quote:
Originally Posted by BlackFoX_UD_
Код:
if(gTeam[playerid] == TEAM_LSPD || gTeam[playerid] == TEAM_FBI ||gTeam[playerid] == TEAM_LSER)
|| = or
&& = And
Thanks man, have a good one
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)