Raised This Month: $ Target: $400
 0% 

Menu Handler


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-12-2011 , 18:50   Re: Menu Handler
Reply With Quote #6

Quote:
Originally Posted by nikhilgupta345 View Post
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).
__________________
fysiks is offline
 



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 20:11.


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