Menu's
Yeah, me again >.<
Right well I've been working on menus for 2 days now...really am stumped. I've read the tutorials on using the new menus but I just don't understand how I call another menu from a menu. I can get the first menu to display. But the second menu doesnt want to pop up. Code:
#include <amxmodx>Thanks. |
Re: Menu's
Just create the menu at plugin_init() or plugin_precache() and use menu_display for that menu in the wanted key(s).
By the way, the older menus are much better, IMO. |
Re: Menu's
So like
Code:
#include <amxmodx>Just tested the code, same problem. First menu appears fine, press number 1. Nothing happens. If I try to open the first menu again nothing happens |
Re: Menu's
Maybe I'm too sleepy to see the problem, but running this code should help you to find what is wrong. I added some debug messages.
Also, I changed option[1] -> option[2] Code:
#include <amxmodx> |
Re: Menu's
Since the menus are global, you shouldn't destroy them.
Code:
#include <amxmodx> |
| All times are GMT -4. The time now is 09:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.