11.08.2012, 19:26
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.