i work in ClanWar and i need help here pliz
need help in select 2 clan random selection pliz
no work this...
Code:
List<Clans> clans = new List<Clans>();
foreach (KeyValuePair<uint, Game.Clans> clan in Conquer_Online_Server.ServerBase.Kernel.ServerClans)
[COLOR="Red"] clans.Add(clan);[/COLOR]
Random rand = new Random();
Clans clan1,clan2;
int selectedIndex = rand.Next(clans.Count);
clan1 = players[selectedIndex];
clans.RemoveAt(selectedIndex);
selectedIndex = rand.Next(clans.Count);
clan2 = players[selectedIndex];
clans.RemoveAt(selectedIndex);
selectedIndex = rand.Next(clans.Count);
ty for help!






