Need some help with team balancer
#1

My brain froze, basically I need to get IDs of teams which WERE NOT chosen.
The code I made will just make the notclicked to the latest team ID, and I want to store all team IDs which weren't chosen.
Any ideas, suggestions?

I know there's a way, I just can't think of it..
pawn Код:
new notclicked;
    for(new x=0; x < MAX_TEAMS; x++)
    {
        if(clickedid != Teams[x]) notclicked = x;
        if(clickedid == Teams[x])
        {
            if(TeamCount[x] > TeamCount[notclicked]) return SendClientMessage(playerid, RED, "This team is full."), 1;
            SetPlayerTeam(playerid, x);
Reply


Messages In This Thread
Need some help with team balancer - by LocMax - 01.10.2014, 19:07
Re: Need some help with team balancer - by LocMax - 04.10.2014, 08:33
Re: Need some help with team balancer - by YanLanger - 04.10.2014, 08:37
Re: Need some help with team balancer - by MasonSFW - 04.10.2014, 08:38
Re: Need some help with team balancer - by LocMax - 04.10.2014, 08:48

Forum Jump:


Users browsing this thread: 1 Guest(s)