Raised This Month: $ Target: $400
 0% 

menu Items starts on Menu title


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
proffs
Senior Member
Join Date: Jul 2013
Old 06-20-2014 , 16:13   menu Items starts on Menu title
Reply With Quote #1

The first block is right after the title
I want it under like the others.

Pic:


PHP Code:
ShowBlockSelectionMenu(id)
{
        new 
menu[256], title[32], entry[32], num;
       
        
format(titlecharsmax(title), "\r[%s] \yBlock Selection %d^n^n"PLUGIN_PREFIXg_block_selection_page[id]);
        
add(menucharsmax(menu), title);
       
        new 
start_block = ( g_block_selection_page[id] - ) * 8;
       
        for ( new 
start_blockstart_block 8; ++)
        {
                if ( 
TOTAL_BLOCKS )
                {
                        
num = ( start_block ) + 1;
                       
                        
format(entrycharsmax(entry), "\r%d. \w%s^n"numg_block_names[i]);
                }
                else
                {
                        
format(entrycharsmax(entry), "^n");
                }
               
                
add(menucharsmax(menu), entry);
        }
       
        if ( 
g_block_selection_page[id] < g_block_selection_pages_max )
        {
                
add(menucharsmax(menu), "^n\r9. \wMore");
        }
        else
        {
                
add(menucharsmax(menu), "^n");
        }
       
        
add(menucharsmax(menu), "^n\r0. \wBack");
       
        
show_menu(idg_keys_block_selection_menumenu, -1"BmBlockSelectionMenu");

proffs is offline
Old 06-20-2014, 16:54
SicknessArG
This message has been deleted by SicknessArG.
SicknessArG
Junior Member
Join Date: Oct 2012
Location: Paraná, Entre Ríos (ARG)
Old 06-20-2014 , 17:01   Re: menu Items starts on Menu title
Reply With Quote #3

Try
Code:
    new title =  format(menu, charsmax(menu), "\r[%s] \yBlock Selection %d^n^n", PLUGIN_PREFIX, g_block_selection_page[id]);
SicknessArG is offline
Send a message via MSN to SicknessArG Send a message via Skype™ to SicknessArG
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 06-20-2014 , 17:12   Re: menu Items starts on Menu title
Reply With Quote #4

Try increasing the buffer size for the title. 31 seems kind of small.
__________________

Last edited by Black Rose; 06-20-2014 at 17:12.
Black Rose is offline
proffs
Senior Member
Join Date: Jul 2013
Old 06-20-2014 , 17:26   Re: menu Items starts on Menu title
Reply With Quote #5

Quote:
Originally Posted by Black Rose View Post
Try increasing the buffer size for the title. 31 seems kind of small.
Thanks increased to 64.
It works now!
proffs 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 21:09.


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