Raised This Month: $ Target: $400
 0% 

Help with menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 05-15-2013 , 15:10   Help with menu
Reply With Quote #1

PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /menu","menu123")
}
public 
menu123(id) {
    new 
menu menu_create("\rMenu help""menu_handler");
    
menu_additem(menu"\wexemple1""1"0);
    
menu_additem(menu"\wexemple2""2"0);
    
menu_additem(menu"\wexemple3 "3", 0);
    menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
    menu_display(id, menu, 0);

ok is it possible to make 0.Exit case to change it to 0.Quit i mean to type what i want to case 0
help if you can
__________________
Balck is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-15-2013 , 16:58   Re: Help with menu
Reply With Quote #2

https://forums.alliedmods.net/showth...46364#newmenus
__________________
Blizzard_87 is offline
Belo95135
Member
Join Date: Jun 2012
Location: Slovakia
Old 05-16-2013 , 13:29   Re: Help with menu
Reply With Quote #3

PHP Code:
menu_setprop(menu,MPROP_EXITNAME,"Quit"); 

Last edited by Belo95135; 05-16-2013 at 13:29.
Belo95135 is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 05-20-2013 , 15:57   Re: Help with menu
Reply With Quote #4

Quote:
Originally Posted by Belo95135 View Post
PHP Code:
menu_setprop(menu,MPROP_EXITNAME,"Quit"); 
Thanks
__________________
Balck is offline
Vitanova
Member
Join Date: May 2013
Old 05-20-2013 , 19:24   Re: Help with menu
Reply With Quote #5

You can also use lang.
PHP Code:
static lExit[32]
formatex(lExitcharsmax(lExit), "%L"LANG_PLAYER"MENU_QUIT")
menu_setprop(menuMPROP_EXITNAMElExit
Vitanova is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 05-21-2013 , 02:06   Re: Help with menu
Reply With Quote #6

Quote:
Originally Posted by Vitanova View Post
You can also use lang.
PHP Code:
static lExit[32]
formatex(lExitcharsmax(lExit), "%L"LANG_PLAYER"MENU_QUIT")
menu_setprop(menuMPROP_EXITNAMElExit
thanks too but can you post me the full code for LANG
__________________
Balck 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 16:28.


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