Raised This Month: $ Target: $400
 0% 

Menu Problems ???


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nostrodamous
BANNED
Join Date: Oct 2006
Old 10-22-2006 , 05:07   Menu Problems ???
Reply With Quote #1

Hey guys . Ok , so im still working on my admin-menu. It has alot of menus in it . i must have registered 40 menus . It compiles perfectly , there are no run-time errors when I debug it . But when I execute commands from the last set of menus I added ( my set cvars for bots menus) it sets the cvars I want for the bots , but it also seems to execute commands from other menus in the plugin. I cant seem to find any errors in my code , but it seems to have tangled somewhere , so Im wondering if theres a limit to the amount of times I can use register_menucmd ? thats the only explanation I can find for the problem . I would post my code but its 1400 lines so ill just explaine the problem
Any ideas?
- Thanks

Last edited by Nostrodamous; 10-23-2006 at 18:59.
Nostrodamous is offline
Nostrodamous
BANNED
Join Date: Oct 2006
Old 10-22-2006 , 13:00   Re: Menu Questions
Reply With Quote #2

BUMP : any ideas ?
Nostrodamous is offline
Nostrodamous
BANNED
Join Date: Oct 2006
Old 10-23-2006 , 19:00   Re: Menu Problems ???
Reply With Quote #3

any ideas can anyone help ?????
Nostrodamous is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 10-23-2006 , 23:02   Re: Menu Problems ???
Reply With Quote #4

Relax you don't need to bump so often. What I'm thinking is that you are seeing a menu that hasn't actually been activated, while a different menu is the active one. So, you push a key, thinking it will activate the inactive, but displayed menu, but the undisplayed active menu will be executed.

I think that is definitely a possibility when you have so many menus garbled into one big mess. All I can say is look over your code for mistakes when calling show_menu().


I would advise you to separate the menus, if at all possible. I don't think anyone feels like reviewing 1000+ lines of code for misuse of show_menu functions.
stupok is offline
Nostrodamous
BANNED
Join Date: Oct 2006
Old 10-23-2006 , 23:50   Re: Menu Problems ???
Reply With Quote #5

hmmmmm. where to start . lets start by saying , obviously ive looked my code over line by line 100 times. and like i said before(maybee you didnt read that part) I cant find any problem with the code. and sperating the menus makes no sense at all. And i dont remmeber asking anyone to review my 1400 lines of code. Ive bumped twice in 2 days .
Summarry- no help at all
Nostrodamous is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 10-24-2006 , 00:01   Re: Menu Problems ???
Reply With Quote #6

No there isnt a limit on register_menucmd
Freecode is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-24-2006 , 00:10   Re: Menu Problems ???
Reply With Quote #7

Hello raphero2000.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Rolnaaba
Veteran Member
Join Date: May 2006
Old 10-24-2006 , 10:24   Re: Menu Problems ???
Reply With Quote #8

when having many menus they often get jumbled at no fault of the coder, especially when using old menu style
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Nostrodamous
BANNED
Join Date: Oct 2006
Old 10-24-2006 , 11:25   Re: Menu Problems ???
Reply With Quote #9

Quote:
Originally Posted by Freecode View Post
No there isnt a limit on register_menucmd
thank you freecode Is there any way around this jumbiling or mens ? i even switched from register_menucmd to register_menu , and tried alot of other stuff. is there a way to cut down on them?
Nostrodamous is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 10-24-2006 , 20:08   Re: Menu Problems ???
Reply With Quote #10

Quote:
Originally Posted by stupok69 View Post
What I'm thinking is that you are seeing a menu that hasn't actually been activated, while a different menu is the active one. So, you push a key, thinking it will activate the inactive, but displayed menu, but the undisplayed active menu will be executed.
You bumped once in the same day, then again the next day. Also I don't remember saying that anyone should or would review your code or that you wanted someone to do so.

Back on topic...

I still think that the part you ignored above is your problem. Try throwing in a couple menu_destroy() in the code to make sure the menus do not overlap each other.
stupok is offline
Reply


Thread Tools
Display Modes

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 04:52.


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