Raised This Month: $ Target: $400
 0% 

menu_addblank changes location of Exit [Solved]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NiQu
Veteran Member
Join Date: Nov 2009
Old 07-08-2013 , 08:59   menu_addblank changes location of Exit [Solved]
Reply With Quote #1

Is it not possible to force the Exit item to always be at key 0 no matter how many items and blanks that exists in the menu ?

Currently, if I use menu_addblank(menu, 0) it will change the Exit item to 9 instead of 0 and if I add another one it will change to 8, etc.

PHP Code:
public Show_Submenus(id)
{
    new 
menustrKey[6]
    
menu menu_create("title""Handler_Submenus")
    
    for(new 
1<= Submenusi++)
    {
        
num_to_str(istrKey5)
        if(
equali(Submenu[i], "menu_blank")) {
            
menu_addblank(menu0)
        } else {
            
menu_additem(menuSubmenu[i], strKey)
        }
    }

    
menu_display(idmenu)

__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]

Last edited by NiQu; 07-09-2013 at 03:53.
NiQu is offline
 


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 06:30.


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