Raised This Month: $ Target: $400
 0% 

Handle Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 04-19-2013 , 08:53   Re: Handle Menu
Reply With Quote #1

Quote:
Originally Posted by Leon M. View Post
Something like this???

PHP Code:
public show_my_menu(id){
    new 
MenuKeysMenuBody[512]

    
add(MenuBody511"\rMy Menu\w^n^n")
    
add(MenuBody511"1. 1st option^n")
    
add(MenuBody511"2. 2nd option^n")
    
add(MenuBody511"0. Exit")

    
MenuKeys |= MENU_KEY_1 MENU_KEY_2 MENU_KEY_0
    show_menu
(idMenuKeysMenuBody, -1"My Menu")

    return 
PLUGIN_HANDLED
}

public 
action_my_menu(idkey){
    new 
iSelected key 1
    
switch(iSelected){
        case 
1: {
            
// do something
            
show_my_menu(id)
        }
        case 
2: {
            
// do something
            
show_my_menu(id)
        }
    }
    return 
PLUGIN_HANDLED

i think he means that once selecting something from second page then when the menu reopens it shows first page again.. he wants the menu to reload on same page so player doesnt have to press 8 to select 2nd page again... that right?

im not if this is correct

try
PHP Code:
menu_display(idmenu0
3rd argument is the page...

after you have selected something from page two then after the command exec..

exec the menu_display(id, menu, 0) and change 0 to 1, that might work...

havent tried it myself.
__________________

Last edited by Blizzard_87; 04-19-2013 at 08:55.
Blizzard_87 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 10:50.


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