01.05.2016, 18:28
I got this problem:
Help me please
PHP код:
: warning 217: loose indentation
PHP код:
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; //THIS IS THE LINE THAT GIVES THE ERROR
}