GangZone flash - Important
#1

Hello,I want to make that gangzone flash with attacker color.

In normal script:
Код:
FlashZoneForPlayer( playerid )
{
    for (new i = 0; i < MAX_TURFS; i++)
	{
         if (turfs[ i ][ TurfWarStarted ] == 1)
         {
			 if (GetPlayerTeam(playerid) == turfs[ i ][ TurfAttacker ])   GangZoneFlashForPlayer( playerid, i, COLOR_FLASH );
			 else if (GetPlayerTeam(playerid) == turfs[ i ][ TurfOwner ]) GangZoneFlashForPlayer( playerid, i, COLOR_FLASH );
			 else                                                         GangZoneFlashForPlayer( playerid, i, COLOR_FLASH2 );
	   }
	}
}
If team fighting for gangzone it flashes by red color.
I want to make that if example attacker Aztecas team(team color lightblue),then turf will flash with lightblue color.

I was trying to make like this:
Код:
FlashZoneForPlayer( playerid )
{
    for (new i = 0; i < MAX_TURFS; i++)
	{
         if (turfs[ i ][ TurfWarStarted ] == 1)
         {
			 if (GetPlayerTeam(playerid) == TEAM_AZTECAS[ TurfAttacker ])   GangZoneFlashForPlayer( playerid, i, AZTECAS_COLOR );
			 else if (GetPlayerTeam(playerid) == turfs[ i ][ TurfOwner ]) GangZoneFlashForPlayer( playerid, i, AZTECAS_COLOR );
			 else                                                         GangZoneFlashForPlayer( playerid, i, AZTECAS_COLOR );
	   }
	}
}
But it gives me errors:

Код:
TurfWarScript.pwn(819) : error 029: invalid expression, assumed zero
TurfWarScript.pwn(819) : error 029: invalid expression, assumed zero
TurfWarScript.pwn(819) : warning 215: expression has no effect
TurfWarScript.pwn(819) : error 001: expected token: ";", but found "]"
TurfWarScript.pwn(819) : fatal error 107: too many error messages on one line
Any help?
Reply
#2

Example Grove vs Aztecas.
Zone flash like this:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)