[Flashy] Show with TextDraw a Kill counter
#4

new TeamKills[2];

creates an array with two cells. In the first cell you would store the number of players left in the first team, in the second cell you would store the one in the second team.

Array-cells start with 0. If you create an array of two cells you have a variable TeamKills[0] and a variable TeamKills[1].

Hence if someone of Team 1 dies, you decrement TeamKills[0] by one (TeamKills[0]--, if someone of team 2 dies you decrement TeamKills[1] by one.

To avoid confusion I'd also suggest you do not call the array TeamKills.
Reply


Messages In This Thread
[Flashy] Show with TextDraw a Kill counter - by Flashy - 14.05.2010, 09:48
Re: [Flashy] Show with TextDraw a Kill counter - by Flashy - 14.05.2010, 10:31
Re: [Flashy] Show with TextDraw a Kill counter - by Flashy - 14.05.2010, 12:23
Re: [Flashy] Show with TextDraw a Kill counter - by juice.j - 14.05.2010, 12:54
Re: [Flashy] Show with TextDraw a Kill counter - by Flashy - 14.05.2010, 13:02
Re: [Flashy] Show with TextDraw a Kill counter - by juice.j - 14.05.2010, 13:11
Re: [Flashy] Show with TextDraw a Kill counter - by Flashy - 14.05.2010, 13:47
Re: [Flashy] Show with TextDraw a Kill counter - by Flashy - 14.05.2010, 15:46
Re: [Flashy] Show with TextDraw a Kill counter - by Flashy - 14.05.2010, 17:22
Re: [Flashy] Show with TextDraw a Kill counter - by juice.j - 14.05.2010, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)