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(title, charsmax(title), "\r[%s] \yBlock Selection %d^n^n", PLUGIN_PREFIX, g_block_selection_page[id]);
add(menu, charsmax(menu), title);
new start_block = ( g_block_selection_page[id] - 1 ) * 8;
for ( new i = start_block; i < start_block + 8; ++i )
{
if ( i < TOTAL_BLOCKS )
{
num = ( i - start_block ) + 1;
format(entry, charsmax(entry), "\r%d. \w%s^n", num, g_block_names[i]);
}
else
{
format(entry, charsmax(entry), "^n");
}
add(menu, charsmax(menu), entry);
}
if ( g_block_selection_page[id] < g_block_selection_pages_max )
{
add(menu, charsmax(menu), "^n\r9. \wMore");
}
else
{
add(menu, charsmax(menu), "^n");
}
add(menu, charsmax(menu), "^n\r0. \wBack");
show_menu(id, g_keys_block_selection_menu, menu, -1, "BmBlockSelectionMenu");
}