Raised This Month: $32 Target: $400
 8% 

How to limit the use of a menu item?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Themaze
Junior Member
Join Date: Mar 2017
Old 12-26-2017 , 05:55   How to limit the use of a menu item?
Reply With Quote #1

I mean if i want an item inside a menu to be bought only once per round How could i do that?
Themaze is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-26-2017 , 07:52   Re: How to limit the use of a menu item?
Reply With Quote #2

Just try global integer variable.
zmd94 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 12-26-2017 , 12:01   Re: How to limit the use of a menu item?
Reply With Quote #3

you should have understanding on how things work. As zmd94 suggested, create a global variable and for set it to true/false and check the value before executing a certain part of code.
__________________
retired chump
DjSoftero is offline
Reply


Thread Tools
Display Modes

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 19:27.


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