How to make team balance?
#9

Stop, in your script:

What is when there are 5 Cops, 8 Ballas and 2 Groves and you choose cop?

case TEAM_COPS: if(count[0] > count[1] && count[0] > count[2])

=> count[0] > count[1] - NO, BUT - count[0] > count[2] - YES

So you would have a problem too i think, dont you ?

Because in your script the team must be bigger than BOTH other teams not if there is one team smaller than this one


I would say my script is right because he can only choose the smallest team... the team with the fewest players....
Reply


Messages In This Thread
How to make team balance? - by kevin433 - 29.06.2008, 16:07
Re: How to make team balance? - by whooper - 20.08.2008, 14:10
Re: How to make team balance? - by Nero_3D - 20.08.2008, 14:14
Re: How to make team balance? - by Nero_3D - 20.08.2008, 15:07
Re: How to make team balance? - by whooper - 20.08.2008, 15:13
Re: How to make team balance? - by adminuser - 20.08.2008, 15:24
Re: How to make team balance? - by whooper - 20.08.2008, 15:26
Re: How to make team balance? - by Nero_3D - 20.08.2008, 15:27
Re: How to make team balance? - by adminuser - 20.08.2008, 15:29
Re: How to make team balance? - by whooper - 20.08.2008, 15:33

Forum Jump:


Users browsing this thread: 1 Guest(s)