Map Votes loop (More than 2 maps)
#3

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.
Reply


Messages In This Thread
Map Votes loop (More than 2 maps) - by Mellnik - 11.08.2012, 19:14
Re: Map Votes loop (More than 2 maps) - by Roko_foko - 11.08.2012, 19:20
Re: Map Votes loop (More than 2 maps) - by leonardo1434 - 11.08.2012, 19:26
Re: Map Votes loop (More than 2 maps) - by Roko_foko - 11.08.2012, 19:42
Re: Map Votes loop (More than 2 maps) - by leonardo1434 - 11.08.2012, 19:48
AW: Re: Map Votes loop (More than 2 maps) - by Mellnik - 11.08.2012, 21:22

Forum Jump:


Users browsing this thread: 4 Guest(s)