06.07.2010, 00:01
Ok, the functions in this code do not need to be shown, because it has nothing to do with the problem, the functions work with no problem.
The main objective of what I'm trying to accomplish is making the gang-zones appear. Apparently, that was successful, but it appears to show it 1024 times. Looping doesn't really work like the way the function is reacting. The loop is just showing the gangzones each 1024, when it's supposed to show it once.
Just a notice, that it has nothing to do with the colors, I changed the transparency of the colors, and still failed. The code is below.
The main objective of what I'm trying to accomplish is making the gang-zones appear. Apparently, that was successful, but it appears to show it 1024 times. Looping doesn't really work like the way the function is reacting. The loop is just showing the gangzones each 1024, when it's supposed to show it once.
Just a notice, that it has nothing to do with the colors, I changed the transparency of the colors, and still failed. The code is below.
pawn Код:
for(new i = 0; i < TOTAL_GANGZONES; i ++ ) {
if(i >= TOTAL_FACTIONS) break;
GangZoneShowForPlayer(playerid, GangZoneStructure[i], ConvertZoneColor(FactionData[GangZoneData[i][gzFID]][fAreaColor]));
}