Help for warning
#1

hi gays!
i want to make a countdown timer for capturing family wars
it works but give me this warning
Код:
D:\Game Mods\GalaXy Gaming\gamemodes\GG.pwn(51597) : warning 219: local variable "playerb" shadows a variable at a preceding level
D:\Game Mods\GalaXy Gaming\gamemodes\GG.pwn(51596) : warning 204: symbol is assigned a value that is never used: "playerb"
line 51597:
Код:
	foreach(Player, playerb)
line 51596:
Код:
new playerb = PlayerInfo[playerid][pFam];
full code:
Код:
forward WarAlireza(playerid,idx);
public WarAlireza(playerid, idx)
{
new string[128];
new playerb = PlayerInfo[playerid][pFam];
	foreach(Player, playerb)
	{
	 if(WarAlirezA ==1)
	 {
	 WarTimer[playerid] ++;
 	 format(string,sizeof(string),"~n~~n~~n~~n~~n~~n~~n~~n~~r~Point Time Left: ~w~%d ~r~seconds", WarTimer[playerid]);
     GameTextForPlayer(playerid, string,1000, 3);
	 }
   }
   return 1;
}
and the timer just shows to player who is capturing but i want to show to all players that are in a family
Plz help for +rep Tnx
Reply


Messages In This Thread
Help for warning - by Airblog - 31.12.2014, 08:36
Re: Help for warning - by JaydenJason - 31.12.2014, 08:45
Re: Help for warning - by Airblog - 31.12.2014, 09:34
Re: Help for warning - by M4D - 31.12.2014, 09:58
Re: Help for warning - by Arxalan - 31.12.2014, 09:59
Re: Help for warning - by Airblog - 31.12.2014, 11:52

Forum Jump:


Users browsing this thread: 2 Guest(s)