Make menu from constants
Let's say that I have this constant:
Quote:
|
Re: Make menu from constants
im not understanding very well, but a good method to make a menu is creating him in "plugin_cfg" using and put them in a global variabile !
|
Re: Make menu from constants
You dind't understood. A menu usually is made using menu_additem(menu,"item","",0)
I want to make the menu to read the items from the constant and the menu items to be the items from constant. Like in Cs Shop https://www.google.ro/url?sa=t&rct=j...58187178,d.bGQ |
Re: Make menu from constants
If you know a plugin that already does it, you can look at its code to see how the author did it.
Basically, you loop through all the items in the array and create the menu item based the iteration of the array. PHP Code:
|
Re: Make menu from constants
Quote:
|
Re: Make menu from constants
I just gave you an example. Everything else you need to know about that menu system can be found in the "New AMXX Menu System" tutorial.
|
Re: Make menu from constants
If I make a menu usign your method,I can't make the handler in the classic way,or I can?
|
Re: Make menu from constants
Look at the tutorial.
|
Re: Make menu from constants
Quote:
|
Re: Make menu from constants
Have you tried it yet?
|
| All times are GMT -4. The time now is 10:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.