warnings
#1

have not seen this warning before so would like to get rid of it.

Код:
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\black.pwn(1201) : warning 219: local variable "j" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Код:
if( gTeam[j]== TEAM_USA ) SetPlayerMarkerForPlayer(i, j, 0x0000FF00);
					if( gTeam[j]== TEAM_GERMANY ) SetPlayerMarkerForPlayer(i, j, 0xFF000000);
					if( gTeam[j]== TEAM_JAPAN ) SetPlayerMarkerForPlayer(i, j, 0xFFFFFF00);
					if( gTeam[j]== TEAM_RUSSIA ) SetPlayerMarkerForPlayer(i, j, 0xF9780400);
					if( gTeam[j]== TEAM_MERC ) SetPlayerMarkerForPlayer(i, j, 0xFFFF0000);

					if( gTeam[i] == gTeam[j] && gPlayerClass[j] == GENERAL) SetPlayerMarkerForPlayer(j, i, 0xF50FCBFF);
				}
		  }
	  new tcolor;
		foreach(Player, j)// warning line
		{
			foreach(Player, i)
			{
  				if( gTeam[i] == TEAM_USA ) tcolor = COLOR_BLUE;
			  if( gTeam[i] == TEAM_GERMANY ) tcolor = COLOR_RED;
			  if( gTeam[i] == TEAM_JAPAN ) tcolor = COLOR_WHITE;
			  if( gTeam[i] == TEAM_RUSSIA ) tcolor = COLOR_ORANGE;
			  if( gTeam[i] == TEAM_MERC ) tcolor = COLOR_YELLOW;
			  if( gTeam[i] != gTeam[j] )	SetPlayerMarkerForPlayer(j, i, tcolor);

			  if( gPlayerClass[i] == GENERAL) SetPlayerMarkerForPlayer(j, i, 0xF50FCBFF);
		  }
		}
 }

	return 1;
}
Reply


Messages In This Thread
warnings - by 02manchestera - 20.03.2010, 22:08
Re: warnings - by GaGlets(R) - 20.03.2010, 22:15

Forum Jump:


Users browsing this thread: 1 Guest(s)