[HELP]warning 213: tag mismatch
#1

C:\samp\gamemodes\larp.PWN(41095) : warning 213: tag mismatch
i made new command and its look this
Код:
if(strcmp(cmd, "/quitteam", true) == 0)
{
	if(IsPlayerConnected(playerid))
	{
		if((PlayerInfo[playerid][pMember] == 1) || (PlayerInfo[playerid][pMember] == 2) || (PlayerInfo[playerid][pMember] == 3)||(PlayerInfo[playerid][pMember] == 4) || (PlayerInfo[playerid][pMember] == 5) || (PlayerInfo[playerid][pMember] == 6) || (PlayerInfo[playerid][pMember] == 9)|| (PlayerInfo[playerid][pMember] == 10)|| (PlayerInfo[playerid][pMember] == 11) || (PlayerInfo[playerid][pMember] == 14) || (PlayerInfo[playerid][pMember] == 15) || (PlayerInfo[playerid][pMember] == 16)==1)
	  {
	  PlayerInfo[giveplayerid][pMember] = 0;
		PlayerInfo[giveplayerid][pRank] = 0;
	  if(PlayerInfo[giveplayerid][pSex] == 1) { random(sizeof(CivMalePeds)); }
		else if(PlayerInfo[giveplayerid][pSex] == 1) { random(sizeof(CivFemalePeds)); }
		else { random(sizeof(CivMalePeds)); }
		return 1;
	 	}
	 	else
  		{
  			SendClientMessage(playerid, COLOR_GRAD1, "Your not in team");
			return 1;
  		}
 	}
}
any idea?
Reply
#2

Copy line 41095
Reply
#3

Код:
if((PlayerInfo[playerid][pMember] == 1) || (PlayerInfo[playerid][pMember] == 2) || (PlayerInfo[playerid][pMember] == 3)||(PlayerInfo[playerid][pMember] == 4) || (PlayerInfo[playerid][pMember] == 5) || (PlayerInfo[playerid][pMember] == 6) || (PlayerInfo[playerid][pMember] == 9)|| (PlayerInfo[playerid][pMember] == 10)|| (PlayerInfo[playerid][pMember] == 11) || (PlayerInfo[playerid][pMember] == 14) || (PlayerInfo[playerid][pMember] == 15) || (PlayerInfo[playerid][pMember] == 16)==1)
i want make cmd what set player to civil.
Reply
#4

pawn Код:
if((1 <= PlayerInfo[playerid][pMember] <= 6) || (9 <= PlayerInfo[playerid][pMember] <= 11) || (14 <= PlayerInfo[playerid][pMember] <= 16))
Reply
#5

but how i add leaders?
Reply
#6

pawn Код:
if(PlayerInfo[playerid][pMember] != 0 && PlayerInfo[playerid][pLeader] != 0)
{
    //Your pawn code stuff here.....//
}
Try this, this should work....

-©un3o.
Reply
#7

not working
it send me else
Reply
#8

what command is it you exactly want?
Reply
#9

make player to civil when player is in gang or organsion it take you out there and set you civil
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)