Raised This Month: $ Target: $400
 0% 

Solved new menus bug?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
lexzor
Veteran Member
Join Date: Nov 2020
Old 09-10-2022 , 19:17   Re: new menus bug?
Reply With Quote #4

expecting eList is an int variable you can check if the current item that will be listed is the last item that should be listed and add ^n at the end of his name. i think this is the best option to add a blank in the menu

PHP Code:
public Menu_Frontend(id)
{
    new 
menu menu_create("\yWhat da dog doin?""Menu_Backend");
    new 
szLine[17], szData[4];

    for(new 
ieListi++)
    {
        
formatex(szLinecharsmax(szLine), "%i"i);
        
formatex(szDatacharsmax(szData), "#%i"i);
        if(
== eList 1add(szLinecharsmax(szLine), "^n");
        
menu_additem(menuszLineszData);
    }


    
menu_additem(menu"a""$");
    
menu_additem(menu"b""%");

    
menu_display(idmenu);


Last edited by lexzor; 09-10-2022 at 19:17.
lexzor is offline
 



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 15:35.


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