Filling menu with options
Hi,
Can someone either show me a plugin or show me an example fo how to "auto-fill" a menu from a file. What I want to do is when someone types w/e cmd it shows them a menu filled with names of all the maps iin the server maps.ini I would love to make this myself, but I have no clue how to do the "filling" part. This is how far I've gotten, pretty sure there's a few errors already. Code:
Thanks. |
I would read the file and format the menu options in a loop
|
Not sure if this will work, most likely not, but you get the idea
Code:
|
Sweet thanks.
What does this do exactly? Code:
|
If the file doesn't exist, it creates it.
write_file on a non-existant file creates the file. EDIT: Also you should probably increase the buffer sizes in Load_File, I copied those parts from another plugin I made and forgot to change the maxlen to fit what you wanted. EDIT2: Awesome, my karma is 69. I'm sexy. |
Lolz. yupp yupp.
And okay will do. EDIT: So it's making a file called "de_dust"?? |
It's creating the file, and then writing one line inside it, "de_dust", without the quotes.
|
| All times are GMT -4. The time now is 16:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.