01.10.2014, 19:07
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..
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);