11.08.2012, 19:20
I think this will help. If not, reply.
pawn Код:
new highestvar = DerbyMapVotes[0],Hvar=0;
for(new i = 1; i < sizeof(DerbyMapVotes); i++)
{
if(DerbyMapVotes[i] > highestvar)
{
highestvar = DerbyMapVotes[i];
Hvar=0;
}
else if(DerbyMapVotes[i] == highestvar)Hvar++;
}
//if Hvar is 1 or more, that means there is tie/draw in voting