27.02.2011, 11:44
Hello,I want to make that gangzone flash with attacker color.
In normal script:
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:
But it gives me errors:
Any help?
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 ); } } }
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 ); } } }
Код:
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