Raised This Month: $ Target: $400
 0% 

Menu Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NucL3ra
Veteran Member
Join Date: Sep 2008
Location: Bucuresti , Romania
Old 11-07-2009 , 13:46   Menu Help
Reply With Quote #1

I have modified the kz_stats plugin so i made multiple tops for most of jumping techniques. But if i make over 6 tops i get the 7th one on "a second page".
I want to put all of them into one page like this:

Code:
Top 10 Menu :
1. Long jump top
2. Count jump top
3. Bhop Top
4. Stand up bhop top
5. Double count Jump top
6. Multi Count jump top
7. Weird Jump top
8. Ladder Drop bhop top
9. Ladder Jump top

0. Exit
But when i did it i have like this:
Code:
Top 10 Menu [1/2]:
1. Long jump top
2. Count jump top
3. Bhop Top
4. Stand up bhop top
5. Double count Jump top
6. Multi Count jump top
7. Weird Jump top

8. Next page
9. Back

0. Exit
And
Code:
Top 10 Menu [2/2]:

1. Ladder Drop Bhop Top
2. Ladder Jump top

8. Next page
9. Back

0.Exit
How can i fix it ?

The code is

PHP Code:
public view_menu(id) {    
    new 
menu menu_create("Top 10 Menu:""menu_handler");
    
menu_additem(menu"\w LongJump Top""1"0);
    
menu_additem(menu"\w CountJump Top""2"0);
    
menu_additem(menu"\w Bunny Hop Top""3"0);
    
menu_additem(menu"\w Stand-Up Bhop Top""4"0);
    
menu_additem(menu"\w Double CountJump Top""5"0);
    
menu_additem(menu"\w Multi CountJump Top""6"0);
    
menu_additem(menu"\w WeirdJump Top""7"0);
    
menu_additem(menu"\w Ladder Drop Bhop Top""8"0);
    
menu_additem(menu"\w LadderJump Top""9"0);

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
    
menu_display(idmenu0);
    
    return 
1;
}

public 
menu_handler(idmenuitem) {
    if (
item == MENU_EXIT)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }
    
    new 
data[6], name[32];
    new 
accesscallback;
    
    
menu_item_getinfo(menuitemaccessdata5__callback);
    
    new 
key str_to_num(data);
    
get_user_name(idname31);
    
    switch (
key
    {
        case 
1
        {
            
ljten_show(id);
        }
        case 
2:
        {    
            
cjten_show(id);
        }
        case 
3:
        {
             
bjten_show(id);
        }
        case 
4:
        {
            
sbjten_show(id);            
        }
        case 
5:
        {    
            
dcjten_show(id);
        }
        case 
6:
        {
            
topten_show(id);
        }
        case 
7:
        {
            
wjten_show(id);
        }
        case 
8:
        {
            
lbjten_show(id);
        }
        case 
9:
        {    
            
lajten_show(id);
        }
        
        
    }
    
    
menu_cancel(id);
    return 
PLUGIN_HANDLED;


Last edited by NucL3ra; 11-07-2009 at 13:49.
NucL3ra is offline
Send a message via Yahoo to NucL3ra
 


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 17:32.


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