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(0, GREY, "[Fn] ^1Funday: ^4HideNseeK", gVotes[0])
}
else if (gVotes[1] > gVotes[0] && gVotes[2] && gVotes[3] && gVotes[4] && gVotes[5])
{
ColorChat(0, GREY, "[Fn] ^1Funday: ^4Nightcrawler", gVotes[1])
}
else if (gVotes[2] > gVotes[0] && gVotes[3] && gVotes[4] && gVotes[5])
{
ColorChat(0, GREY, "[Fn] ^1Funday: ^4Zombie day", gVotes[2])
}
else if (gVotes[3] > gVotes[0] && gVotes[2] && gVotes[4] && gVotes[5])
{
ColorChat(0, GREY, "[Fn] ^1Funday: ^4Scoutzknivez", gVotes[3])
}
else if (gVotes[4] > gVotes[0] && gVotes[2] && gVotes[3] && gVotes[5])
{
ColorChat(0, GREY, "[Fn] ^1Funday: ^4Sparta day", gVotes[4])
}
else if (gVotes[5] > gVotes[0] && gVotes[2] && gVotes[3] && gVotes[4])
{
ColorChat(0, GREY, "[Fn] ^1Funday: ^4Scoutzknivez", gVotes[5])
}
But it doesnt show up even tryed it with the +
__________________