Raised This Month: $ Target: $400
 0% 

How to count all the votes?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-17-2012 , 16:10   How to count all the votes?
Reply With Quote #1

Hello there people i like to know how i count all the votes for a basic vote menu i tryed this

PHP Code:
    if (gVotes[0] > gVotes[1] && gVotes[2] && gVotes[3] && gVotes[4] && gVotes[5])
    {
        
ColorChat(0GREY"[Fn] ^1Funday: ^4HideNseeK"gVotes[0])
    }
    else if (
gVotes[1] > gVotes[0] && gVotes[2] && gVotes[3] && gVotes[4] && gVotes[5])
    {
        
ColorChat(0GREY"[Fn] ^1Funday: ^4Nightcrawler"gVotes[1])
    }
    else if (
gVotes[2] > gVotes[0] && gVotes[3] && gVotes[4] && gVotes[5])
    {
        
ColorChat(0GREY"[Fn] ^1Funday: ^4Zombie day"gVotes[2])
    }
    else if (
gVotes[3] > gVotes[0] && gVotes[2] && gVotes[4] && gVotes[5])
    {
        
ColorChat(0GREY"[Fn] ^1Funday: ^4Scoutzknivez"gVotes[3])
    }
    else if (
gVotes[4] > gVotes[0] && gVotes[2] && gVotes[3] && gVotes[5])
    {
        
ColorChat(0GREY"[Fn] ^1Funday: ^4Sparta day"gVotes[4])
    }
    else if (
gVotes[5] > gVotes[0] && gVotes[2] && gVotes[3] && gVotes[4])
    {
        
ColorChat(0GREY"[Fn] ^1Funday: ^4Scoutzknivez"gVotes[5])
    } 
But it doesnt show up even tryed it with the +
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-17-2012 , 16:15   Re: How to count all the votes?
Reply With Quote #2

https://forums.alliedmods.net/showth...highlight=vote
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-17-2012 , 16:31   Re: How to count all the votes?
Reply With Quote #3

Thanks but it start from gvotes 0, with this code it starts from 1 so for example i press 1 (HnS) it goed to Nightcrawler
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-17-2012 , 16:34   Re: How to count all the votes?
Reply With Quote #4

Nvm, i think i can solve this by myself thanks anyway
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-17-2012 , 16:35   Re: How to count all the votes?
Reply With Quote #5

I didn't understand any of that.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-17-2012 , 16:38   Re: How to count all the votes?
Reply With Quote #6

Nvm, my brother was typing for me. I was in the bathroom, solved it thanks
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode