Raised This Month: $ Target: $400
 0% 

ML in a menu help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 07-05-2007 , 04:50   ML in a menu help
Reply With Quote #1

is it possible to use the ML system in the new AMXX menu System?
__________________

flyeni6 is offline
Send a message via AIM to flyeni6
mateo10
Veteran Member
Join Date: Jan 2006
Old 07-05-2007 , 10:43   Re: ML in a menu help
Reply With Quote #2

Yes, like this:
Code:
new title[32]; format(title, 31, "%L", LANG_PLAYER, "KEY"); new menu = menu_create(title, "menu_handler"); new menukey[32]; format(menukey, 31, "%L", LANG_PLAYER, "MENUKEY"); menu_additem(menu, menukey, "1", 0);
mateo10 is offline
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 07-05-2007 , 16:16   Re: ML in a menu help
Reply With Quote #3

thank you sir
__________________

flyeni6 is offline
Send a message via AIM to flyeni6
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 07-05-2007 , 16:24   Re: ML in a menu help
Reply With Quote #4

what about for multiple menu keys?
__________________

flyeni6 is offline
Send a message via AIM to flyeni6
mateo10
Veteran Member
Join Date: Jan 2006
Old 07-06-2007 , 06:02   Re: ML in a menu help
Reply With Quote #5

Just do the same thing:
Code:
new menukey_1[32]; format(menukey_1, 31, "%L", LANG_PLAYER, "MENU_KEY"); new menukey_2[32]; format(menukey_2, 31, "%L", LANG_PLAYER, "MENU_KEY_2"); menu_additem(menu, menukey_1, "1", 0); menu_additem(menu, menukey_2, "2", 0);
mateo10 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 21:28.


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