[HELP] Problem with a small command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Problem with a small command (
/showthread.php?tid=126074)
[HELP] Problem with a small command -
FreddeN - 06.02.2010
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
Re: [HELP] Problem with a small command -
BlackFoX - 06.02.2010
Код:
if(gTeam[playerid] == TEAM_LSPD || gTeam[playerid] == TEAM_FBI ||gTeam[playerid] == TEAM_LSER)
|| = or
&& = And
Re: [HELP] Problem with a small command -
FreddeN - 06.02.2010
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