Quote:
Originally Posted by leonardo1434
Try to follow this logic.
pawn Код:
// storing the names of the maps in the array fuckyeh. new fuckyeh[] = { "map1", "map2", "map3" }; new map1,map2,map3; // creating new variables to be increased in which map the player votes.
if(map1 > map2 && map3) return SendRconCommand(fuckyeh[0]); // checking if the first map has his value bigger than the others. else if(map2 > map1 && map3) return SendRconCommand(fuckyeh[1]); // checking if the second map has his value bigger than the others. else if(map3 > map1 && map2) return SendRconCommand(fuckyeh[2]);// checking if the third map has his value bigger than the others.
|
What if there are no 3, but 20 maps?
And, what if there are two maps that have equal votes and also have more votes then the other?