SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 06/02/2010, 10:43 PM   #1
FreddeN
Huge Clucker
 
Join Date: May 2009
Posts: 370
Reputation: 0
Default [HELP] Problem with a small command

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.

Code:
if(gTeam[playerid] == TEAM_LSPD && TEAM_FBI && TEAM_LSER)
Thanks for helping me out
FreddeN is offline  
Old 06/02/2010, 10:45 PM   #2
BlackFoX
Huge Clucker
 
Join Date: Dec 2007
Posts: 227
Reputation: 10
Default Re: [HELP] Problem with a small command

Code:
if(gTeam[playerid] == TEAM_LSPD || gTeam[playerid] == TEAM_FBI ||gTeam[playerid] == TEAM_LSER)
|| = or
&& = And
BlackFoX is offline  
Old 06/02/2010, 11:01 PM   #3
FreddeN
Huge Clucker
 
Join Date: May 2009
Posts: 370
Reputation: 0
Default Re: [HELP] Problem with a small command

Quote:
Originally Posted by BlackFoX_UD_
Code:
if(gTeam[playerid] == TEAM_LSPD || gTeam[playerid] == TEAM_FBI ||gTeam[playerid] == TEAM_LSER)
|| = or
&& = And
Thanks man, have a good one
FreddeN is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a small problem dendudes123 Help Archive 1 21/06/2010 09:26 AM
Small Command Help? Antonio [G-RP] Help Archive 4 28/05/2010 11:58 PM
[HELP] Problem with a small Command FreddeN Help Archive 4 04/12/2009 07:38 PM
Small problem Desert Help Archive 2 04/11/2009 05:14 PM
Small question about a command dirkblok Help Archive 6 18/10/2009 12:42 PM


All times are GMT. The time now is 07:16 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.