Menu Problem
Can someone please help me figure out why this doesn't work
The register_menucmd's are in plugin init.. and all the client print's are to help find where the error is.. Code:
When I try use this menu i get to the second menu but the messagemode never comes up. Code:
B:You selected 7, saved as.. 6Changing the plugin_handled to plugin_continue on the first menu handler gives this result instead.. (the messagemode does come up but the second menu option gets handled by both menu handlers... w.t.f..) Code:
B:You selected 6, saved as.. 5 |
Re: Menu Problem
Hey you,
i ask me everytime why everybody use the Old - Menusystem. because the new one is Easyer and require less sourcecode so your Plugin is not so big maybe you can explain me what u want beacuse of i cant understand what u in this Thread want |
Re: Menu Problem
The old menu system is the only one is know how to do. Seems easier than learning another way.
The idea is that a menu comes up with a choice of 8 badges, you select one and a new menu comes up with 4 level choices. After choosing the level a messagemode prompt is displayed so you can enter a player name and then a client cmd is called that gives that player the badge and level specified (part of the bf2 rank mod admin menu) But it doesn't work. Either the second menu is handled by the first menu handler and the messagemode never comes up Or the second menu gets handled by both and overwrites your original choice of badge.. |
Re: Menu Problem
After a quick glance, I don't understand why you did this:
Code:
public MenuBadge_ChooseOption(id, pclass:key) |
Re: Menu Problem
PM used them in his fixed version of the xp mod tutorial...
http://forums.alliedmods.net/showthread.php?t=12518 All my other menus work btw but I'll give it a go to see if it helps :up: |
Re: Menu Problem
Lol you were kinda right. Definately shouldn't have had pclass there.
Didn't fix the problem though. Changed to new menu system fixed it.. Thanks |
| All times are GMT -4. The time now is 06:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.