18.06.2010, 17:11
If you already have the vote counts than you just need to compare
This is a stable algorithm so if the first and the third map got five votes the first will be choosen
pawn Код:
new map;
for(new i; i < sizeof MapVotes; i++)
if(MapVotes[map] < MapVotes[i])
map = i;