Raised This Month: $ Target: $400
 0% 

menu item time limit


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-20-2011 , 15:47   Re: menu item time limit
Reply With Quote #2

Have a variable that contains the timestamp at which they can use it again. Then, everytime they call the menu (or whatever) you check to see if their stored time is less than get_systime(). If yes, then let them choose, if no, show your message. Each time they choose, add the 90 to get_systime() and store that as the new timestamp.
__________________
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 12:02.


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