Quote:
Originally Posted by nikhilgupta345
The voting works fine, but the counting down doesn't work correctly. It updates the time remaining only after you choose after the menu options, so it would stay on 5 or 6 until you press a menu option and it updates.
|
Oh, yeah. I have it update when the votes change.
You should be able to do this:
PHP Code:
public taskCount()
{
g_iCount--
if(g_iCount > 0)
{
show_vote_menu()
}
else
{
end_vote()
}
}
With this you may be able to remove the show_vote_menu() in the menu handler (try it with and without; without will be more efficient).
__________________