Raised This Month: $ Target: $400
 0% 

Problem with submenues and hudmessages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ZiP*
Senior Member
Join Date: Jul 2004
Old 07-07-2006 , 19:10   Problem with submenues and hudmessages
Reply With Quote #1

I've built a menu for my server. The purpose of it is to help players with the custom plugins and other important things.

Here goes:

1)
This menu shows when I type "!helpmenu", yes it's supposed to, don't worry.
Click image for larger version

Name:	mainmenu.JPG
Views:	171
Size:	5.8 KB
ID:	8810


2)
This happens when I press the "Admins" key. The same thing goes for the "Rules" key if you're wondering.
Click image for larger version

Name:	adminmenu.JPG
Views:	174
Size:	20.9 KB
ID:	8811


3)
This happens when I press the "Plugins" key. (note this is the FIRST submenu)
In ALL the previous menus, including this one, ALL the keys work perfectly.
Click image for larger version

Name:	pluginsmenu.JPG
Views:	162
Size:	9.1 KB
ID:	8812


4)
Yes, yes, it's all working, but for how much longer?
Now I've moved along and entered the third submenu, the "alien's plugins".
Click image for larger version

Name:	aliensmenu.JPG
Views:	143
Size:	6.6 KB
ID:	8813


5)
You know the feeling that something bad is going to happen?
Now, whenever I press ANY key from the "alien's plugins", "marine's plugins" and the "Icon's plugins", it shows the corresponding key from the first submenu.
Click image for larger version

Name:	bugged.JPG
Views:	180
Size:	23.7 KB
ID:	8814


Now, I know, it got a little messy at the button. But in short, on the picture, I've just pressed the first key in the "alien's menu". It's supposed to go back to the "plugin's menu". YES.

Info: All the hudmessages are collected from txt files placed in the mod-folder.

Hope you all understood that, I'll go to bed now.

//ZiP*
ZiP* is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-08-2006 , 10:35   Re: Problem with submenues and hudmessages
Reply With Quote #2

I've had huge issues with this same thing. What I've done is completely evaded using more than one menu in general, but I'm guessing that you can't do that. You should try either using a set_task to open the next menu (rather than a direct function call in the first menu's handler function) or using the new menu system, since it looks like you don't really need a dynamic menu.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
ZiP*
Senior Member
Join Date: Jul 2004
Old 07-09-2006 , 11:29   Re: Problem with submenues and hudmessages
Reply With Quote #3

Quote:
Originally Posted by Hawk552
I've had huge issues with this same thing. What I've done is completely evaded using more than one menu in general, but I'm guessing that you can't do that. You should try either using a set_task to open the next menu (rather than a direct function call in the first menu's handler function) or using the new menu system, since it looks like you don't really need a dynamic menu.
Thank you for the rather quick reply.

I've already tried applying a set_task function, which apparently didn't work. I guess the new menu system would be the right call for me.
ZiP* is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:00.


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