Help for warning
#6

Quote:
Originally Posted by M4D
Посмотреть сообщение
you maked playerb variable twice in 1 function
change name one of them.
for example
pawn Код:
//change it
new playerb = PlayerInfo[playerid][pFam];
//to:
new player2 = PlayerInfo[playerid][pFam];

and you maked a loop between players but you didn't use it !!

pawn Код:
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);
     }
   }
where used "playerb" ?!
you mean
Код:
	
new playerb2 = PlayerInfo[playerid][pFam];
foreach(Player, playerb2)
	{
	 if(WarAlirezA ==1)
	 {
	 WarTimer[playerb2] ++;
 	 format(string,sizeof(string),"~n~~n~~n~~n~~n~~n~~n~~n~~r~Point Time Left: ~w~%d ~r~seconds", WarTimer[playerb2]);
     GameTextForPlayer(playerb2, string,1000, 3);
	 }
   }
?
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: 1 Guest(s)