This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

New AMXX Menu System


Post New Thread Reply   
 
Thread Tools Display Modes
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 01-17-2012 , 19:50   Re: New AMXX Menu System
Reply With Quote #361

Quote:
Originally Posted by fysiks View Post
You need one handler for every time you use menu_create(). This means that if you have one menu with two sub menu's then you need a total of three handler functions.
You don't need one for each menu. You can have a single function to handle all menus; you just need to be able to identify which menu you are currently handling. This can be done with a global variable or by passing more specific data with each item.

Last edited by Emp`; 01-17-2012 at 19:50.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-17-2012 , 19:57   Re: New AMXX Menu System
Reply With Quote #362

Quote:
Originally Posted by Emp` View Post
You don't need one for each menu. You can have a single function to handle all menus; you just need to be able to identify which menu you are currently handling. This can be done with a global variable or by passing more specific data with each item.
Yes, very true. I guess I was answering the question in "laymans" terms. So, the easiest for beginners, IMO, is having a one to one ratio .
__________________
fysiks is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 01-17-2012 , 20:07   Re: New AMXX Menu System
Reply With Quote #363

Quote:
Originally Posted by fysiks View Post
Yes, very true. I guess I was answering the question in "laymans" terms. So, the easiest for beginners, IMO, is having a one to one ratio .
Yes, I agree. Maybe I will add a section that shows how to use a single function to handle multiple menus.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
makavelli
Senior Member
Join Date: Nov 2006
Location: Belgium
Old 01-19-2012 , 12:33   Re: New AMXX Menu System
Reply With Quote #364

Quote:
Originally Posted by Emp` View Post
Yes, I agree. Maybe I will add a section that shows how to use a single function to handle multiple menus.
that would be nice
& thank you both for the help
makavelli is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 01-19-2012 , 15:46   Re: New AMXX Menu System
Reply With Quote #365

Quote:
Originally Posted by Emp` View Post
Maybe I will add a section that shows how to use a single function to handle multiple menus.
Done.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
nML
New Member
Join Date: Feb 2012
Old 02-11-2012 , 16:40   Re: New AMXX Menu System
Reply With Quote #366

This helped me a lot in understanding menus, THANK YOU
__________________
Quote:
You can do anything, but not everything..
-David Allen
nML is offline
Old 02-12-2012, 15:41
nML
This message has been deleted by nML.
BeeFighter
Member
Join Date: Feb 2012
Old 02-17-2012 , 06:01   Re: New AMXX Menu System
Reply With Quote #367

The advanced vote menu isn't working.

start_vote is triggering the vote, but never gives me the 255 HP.
BeeFighter is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-17-2012 , 17:04   Re: New AMXX Menu System
Reply With Quote #368

Quote:
Originally Posted by BeeFighter View Post
The advanced vote menu isn't working.

start_vote is triggering the vote, but never gives me the 255 HP.
Is the health function getting called?
__________________
fysiks is offline
Koljach
New Member
Join Date: Jan 2012
Location: Serbia
Old 03-06-2012 , 10:15   Re: New AMXX Menu System
Reply With Quote #369

Hi guys, a tutorial is a good and helpful, but I have a problem ... Personally, I should write the code in the case 0, 1, 2, 3 ... motd code to open the html page ... whether you could show me the code and registration code for those commands? thx
Koljach is offline
Send a message via MSN to Koljach Send a message via Skype™ to Koljach
0920357689
Senior Member
Join Date: Apr 2008
Old 03-25-2012 , 22:09   Re: New AMXX Menu System
Reply With Quote #370

if player open new menu
the old menu will be auto destroy?

THX

Last edited by 0920357689; 03-25-2012 at 22:25.
0920357689 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 18:12.


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