Creating vote system
#3

If you already have the vote counts than you just need to compare

pawn Код:
new map;
for(new i; i < sizeof MapVotes; i++)
    if(MapVotes[map] < MapVotes[i])
        map = i;
This is a stable algorithm so if the first and the third map got five votes the first will be choosen
Reply


Messages In This Thread
Creating vote system - by iStarzz - 18.06.2010, 16:02
Re: Creating vote system - by TTJJ - 18.06.2010, 16:46
Re: Creating vote system - by Nero_3D - 18.06.2010, 17:11

Forum Jump:


Users browsing this thread: 1 Guest(s)