GangZone flash - Important - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GangZone flash - Important (
/showthread.php?tid=232318)
GangZone flash - Important -
aqu - 27.02.2011
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?
Re: GangZone flash - Important -
aqu - 27.02.2011
Example Grove vs Aztecas.
Zone flash like this: