Cuff Command
#5

Quote:
Originally Posted by GTLS
Посмотреть сообщение
The thing is, != sign (Exclamation mark followed by an equals), means Not Equal to. while double equal means equal too. You used double equal to in your code that is why it got reverted. As Mughla did, he combined both lines using && sign (double ampersand ) which means AND relation. Mughla had not provided explanation so I thought I'd give it for people who are new to programming.
Yeah. Thanks for the info.
I guess this triggered the double equal and reverted the teams right?
Код:
if(allTeams[playerid] == TEAM_POLICE) return SendClientMessage(playerid,COLOR_RED, "ERROR: You need to be a police officer or a army member!");
if(allTeams[playerid] == TEAM_ARMY)	return SendClientMessage(playerid,COLOR_RED, "ERROR: You need to be a police officer or a army member!");
Reply


Messages In This Thread
Cuff Command - by Spectat0rDE - 28.05.2018, 11:16
Re: Cuff Command - by Mugala - 28.05.2018, 12:21
Re: Cuff Command - by Spectat0rDE - 28.05.2018, 12:54
Re: Cuff Command - by GTLS - 28.05.2018, 14:26
Re: Cuff Command - by Spectat0rDE - 28.05.2018, 15:24

Forum Jump:


Users browsing this thread: 1 Guest(s)