31.12.2014, 08:36
hi gays!
i want to make a countdown timer for capturing family wars
it works but give me this warning
line 51597:
line 51596:
full code:
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
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"
Код:
foreach(Player, playerb)
Код:
new playerb = PlayerInfo[playerid][pFam];
Код:
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; }
Plz help for +rep Tnx