Quote:
Originally Posted by Leon M.
Something like this???
PHP Code:
public show_my_menu(id){ new MenuKeys, MenuBody[512]
add(MenuBody, 511, "\rMy Menu\w^n^n") add(MenuBody, 511, "1. 1st option^n") add(MenuBody, 511, "2. 2nd option^n") add(MenuBody, 511, "0. Exit")
MenuKeys |= MENU_KEY_1 | MENU_KEY_2 | MENU_KEY_0 show_menu(id, MenuKeys, MenuBody, -1, "My Menu")
return PLUGIN_HANDLED }
public action_my_menu(id, key){ 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(id, menu, 0)
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.
__________________