Raised This Month: $ Target: $400
 0% 

Menu (set number of row)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 06-16-2013 , 02:31   Menu (set number of row)
Reply With Quote #1

Hello!

PHP Code:
public CmdMenuclient )
{

    new 
szItem128 ];

    
formatexszItemcharsmaxszItem ), "123");
    new 
Menu menu_createszItem"test" );
    
    
formatexszItemcharsmaxszItem ), "fff");
    
menu_additemMenuszItem"1");
    
    
formatexszItemcharsmaxszItem ), "fffddd");
    
menu_additemMenuszItem"2");
    
    
formatexszItemcharsmaxszItem ), "fffdddsss");
    
menu_additemMenuszItem"3");
    
    
/*i want to add a menu row with numer, for example, 7
    
    formatex( szItem, charsmax( szItem ), "seven");
    menu_additem( Menu, szItem, "7", 0 ); ??? */
    
    
menu_setpropMenuMPROP_NUMBER_COLOR"\y" );
    
menu_setpropMenuMPROP_EXITNAME"Exit" ); 
    
    
menu_displayclientMenu);
    
    return 
PLUGIN_HANDLED;

I have a menu with 4 rows (1, 2, 3 and exit)
I want to add a row with index number 7. How i can do it?
When i add a row, his number automatically will be set to the next number (4 after 3, 5 after 4, etc.)

I need:

PHP Code:
Menu title

1. row
2. row
3. row



7. row


0. 
exit 
__________________
sorry my bad english...

Last edited by alonelive; 06-16-2013 at 02:32.
alonelive is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-16-2013 , 03:57   Re: Menu (set number of row)
Reply With Quote #2

Untill menu_addtext is fixed, use "old" menu system.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 20:10.


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