View Single Post
Author Message
ElijahDD
Junior Member
Join Date: Aug 2018
Old 09-14-2018 , 11:14   Can anyone write function to mix array..?
Reply With Quote #1

Hello.
Maybe someone have or can write this function:

I have 8 teams (4 players in each), 32 players online. I need function to mix players in teams.
For example:

Code:
//First team (1, 10, 15, 25 - player index)
Player[1][iTeam] = 1;
Player[10][iTeam] = 1;
Player[15][iTeam] = 1;
Player[25][iTeam] = 1;

//Second team
Player[2][iTeam] = 2;
Player[6][iTeam] = 2;
Player[31][iTeam] = 2;
Player[11][iTeam] = 2;
If someone can help with this - please help me

Last edited by ElijahDD; 09-14-2018 at 11:58.
ElijahDD is offline