View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-15-2010 , 16:52   Re: New AMXX Menu System
Reply With Quote #301

Quote:
Originally Posted by t3hNox View Post
I have a question about advanced vote menu.
Code:
    //Else if two different voteids recieved all the votes     else if( votes_select == 2 )     {         //If they recieved even votes         if( votecount[0] == votecount[1] )         {             //Give it to a random one             client_print(0, print_chat, "Vote has tied. Choosing random from tied votes." );             winner( voteid[ random(2) ] );         }                 //Else if the first recieved the most         else if( votecount[0] > votecount[1] )             //Give it to the first         winner( voteid[0] );                 //Else the second recieved the most         else         //Give it to the second         winner( voteid[1] );     }
What is votecount? It is nowhere previously mentioned in the code.
Just a copy past error probably. Change all four to the variable votes
__________________
fysiks is offline