Loose identation
#4

Here, try this:

Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid) 
{ 
	if(checkpointid == CP[First]) 
	{ 
		if(UnderAttack[First] == 1) 
		{ 
			SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!"); 
		} 
		else if(gTeam[playerid] == tCP[First]) 
		{ 
			SendClientMessage(playerid, 0xFF0000FF,"This zone is already being captured!"); 
		} 
		else if(gTeam[playerid] == TEAM_NONE) 
		{ 
			SendClientMessage(playerid, 0xFF0000FF,"You have no team so you cannot capture!"); 
		} 
		else 
		{ 
			UnderAttack[First] = 1; 
			timer[playerid][First] = SetTimerEx("SetCaptureZone", 25000, false,"i",playerid); 
			CountTime[playerid] = SetTimerEx("CountDown", 1, false,"i", playerid); 
			iCP[playerid] = First; 
			InCP[playerid][First] = 1; 
			Captured[First] = 0; 
			if(gTeam[playerid] == SWAT) 
			{ 
				GangZoneFlashForAll(Zone[First], ARMY_COLOR); 
			} 
			else if(gTeam[playerid] == TERRORISTS) 
			{ 
				GangZoneFlashForAll(Zone[First], COLOR_RED); 
			} 
			new string[128], name[MAX_PLAYER_NAME+1]; 
			GetPlayerName(playerid, name, sizeof(name)); 
			format(string, sizeof(string),"%s is trying to capture theFirst",name); 
			SendClientMessageToAll(ARMY_COLOR, string); 
		} 
	} 
	return 1;
}
Reply


Messages In This Thread
Loose identation - by Fantje - 01.05.2016, 18:28
Re: Loose identation - by bgedition - 01.05.2016, 18:32
Re: Loose identation - by Fantje - 01.05.2016, 18:32
Re: Loose identation - by bgedition - 01.05.2016, 18:34

Forum Jump:


Users browsing this thread: 1 Guest(s)