#1

I've putting a command only for COPS,SWAT,FBI,CIA,ARMY But only COPS Can use it why

PHP код:
if(!PoliceTeam(GetPlayerSkin(playerid) && SWAT(GetPlayerSkin(playerid) && Army(GetPlayerSkin(playerid) && FBII(GetPlayerSkin(playerid) && CIA(GetPlayerSkin(playerid))))))) return SendClientMessage(playerid0xE74C3CFF"{FF0000}Error: {FFFFFF}Only Law Enforcement may use this command."); 
Reply
#2

Hi Sir!!

PHP код:
    if(!PoliceTeam(GetPlayerSkin(playerid)) && !SWAT(GetPlayerSkin(playerid)) && !Army(GetPlayerSkin(playerid)) && !FBII(GetPlayerSkin(playerid)) && !CIA(GetPlayerSkin(playerid))) return SendClientMessage(playerid0xE74C3CFF"{FF0000}Error: {FFFFFF}Only Law Enforcement may use this command."); 
Reply
#3

Take a look at control structures.
https://sampwiki.blast.hk/wiki/Control_Structures

You're looking for or ( || ) operator.

AND AS YOU HAVE BEEN TOLD COUNTLESS OF TIMES: - THE WAY YOU ARE CHECKING FOR PLAYER TEAM IS EXTREMELY BAD. YOU SHOULD CONSIDER CHANGING IT ASAP. OTHERWISE DON'T COMPLAIN ABOUT BUGS.
Reply
#4

Quote:
Originally Posted by kovac
Посмотреть сообщение
Take a look at control structures.
https://sampwiki.blast.hk/wiki/Control_Structures

You're looking for or ( || ) operator.

AND AS YOU HAVE BEEN TOLD COUNTLESS OF TIMES: - THE WAY YOU ARE CHECKING FOR PLAYER TEAM IS EXTREMELY BAD. YOU SHOULD CONSIDER CHANGING IT ASAP. OTHERWISE DON'T COMPLAIN ABOUT BUGS.
Don't consider wasting your time for better of other people who don't want to change themselves or their code.

"You can lead a horse to water, but you can't make it drink" - Remember that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)