Capture zone problem rep+
#4

Not working (i can't see gametext or textdraw) and 1 warning
Quote:

warning 219: local variable "playerid" shadows a variable at a preceding level

Код:
forward CountDown1(playerid);
public CountDown1(playerid)
{
	--> foreach(Player, playerid)
	{
		if(IsPlayerInDynamicCP(playerid, CP[CAPZONE]) && UnderAttack[CAPZONE] == 1 && IsPlayerCapturing[playerid][CAPZONE] == 1)
		{
  			if(CountVar[playerid][CAPZONE] == 0) return KillTimer(ctimer[playerid]);
			CountVar[playerid][CAPZONE]--;
			new str1[124];
			TextDrawShowForPlayer(playerid, CountText[playerid]);
			format(str1, sizeof(str1),"~r~%d seconds ~w~left to ~g~capture", CountVar[playerid][CAPZONE]);
			TextDrawSetString(CountText[playerid], str1);
		}
	}
	return 1;
}
Reply


Messages In This Thread
Capture zone problem rep+ - by Mijata - 09.08.2016, 16:33
Re: Capture zone problem rep+ - by K0P - 09.08.2016, 16:42
Re: Capture zone problem rep+ - by Logic_ - 09.08.2016, 16:49
Re: Capture zone problem rep+ - by Mijata - 09.08.2016, 16:52
Re: Capture zone problem rep+ - by K0P - 09.08.2016, 16:55
Re: Capture zone problem rep+ - by Mijata - 09.08.2016, 17:07
Re: Capture zone problem rep+ - by K0P - 09.08.2016, 17:10
Re: Capture zone problem rep+ - by Logic_ - 09.08.2016, 17:11
Re: Capture zone problem rep+ - by Mijata - 09.08.2016, 17:13
Re: Capture zone problem rep+ - by Logic_ - 09.08.2016, 17:16

Forum Jump:


Users browsing this thread: 1 Guest(s)