AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to make a menu... (https://forums.alliedmods.net/showthread.php?t=114139)

#8 SickneSS 01-02-2010 07:05

How to make a menu...
 
Readed from an .ini file?

like

PHP Code:

//Menu create

//Menu Handler

//Read from .ini 


fysiks 01-02-2010 15:24

Re: How to make a menu...
 
What are you trying to do? Most of the time you can limit the file access to plugin_init() or plugin_cfg() to minimize cpu usage during the game. Then you just access the information in menu_handler().

If you want to do it the way you have posted then just do it. I see no question.

#8 SickneSS 01-03-2010 02:59

Re: How to make a menu...
 
Look,im working in a new version of mixmaker and too much ppl said to me,please,make a ini file for /maps (MapsMenu) because,then dont have the maps or need add maps,so i need that,if u need to know more about that,u can download mixmaker and test it,thanks!

Sorry for my bad english

fysiks 01-03-2010 13:17

Re: How to make a menu...
 
All you need to do is what I said before. Read the file in plugin_cfg() and save the map names in an array. Then, build the menu with this array. Simple as that.

#8 SickneSS 01-03-2010 21:51

Re: How to make a menu...
 
Ok,i will try :),thanks!


All times are GMT -4. The time now is 04:12.

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