Raised This Month: $ Target: $400
 0% 

Menu pages


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 01-10-2011 , 14:37   Menu pages
Reply With Quote #1

I have a menu of the plugin class as a human but has more than 9 menu items he creates a second page, but does not appear the next option.
Only a 9.

PHP Code:
public fwHamPlayerSpawnPost(id

        
set_task(get_cvar_float("zp_delay")+5.0"ClCmdSelectModel",id


public 
ClCmdSelectModel(idmenuid

        if(
zp_get_user_zombie(id) || zp_get_user_nemesis(id) || zp_get_user_survivor(id)) 
        { 
                return 
PLUGIN_HANDLED
        } 
         
        else if(!
is_user_alive(id)) 
        { 
                return 
PLUGIN_HANDLED
        } 
        else 
        { 
                
human_menu(id
        } 
        return 
PLUGIN_CONTINUE


public 
human_menu(id

        new 
menu menu_create("\rEscolha seu Personagem:""human_menu_handler")
        
menu_additem(menu"\wLeon - A coragem biba (50 de Colete)""1"0)
        
menu_additem(menu"\wWesker - A biba Gato Rapido (300 de Vida + 30 colete)""2"0
        
menu_additem(menu"\wJill - A Piriguete Saltadora (Gravidade ++ + 30 colete)""3"0
        
menu_additem(menu"\wChoijiyoon - Rosquinha Gelada (FrostNade X 5 + 30 colete)""4"0
        
menu_additem(menu"\wYuri - Rosquinha Quente (NapalmNade X 5 + 30 colete)""5"0
        
menu_additem(menu"\wAda - A piriguete Iluminada (FlareNade X 5 + Aura de Luz + 35 colete)""6"0)
        
menu_additem(menu"\w[ADM] Nano Suit - A armadura power color (Alta velocida + 70 colete)""7"ADMIN_IMMUNITY)
        
menu_additem(menu"\w[ADM] Homens de Preto - Os bibas bem trajados (NapalmNade X 6 + 70 colete)""8"ADMIN_IMMUNITY)
        
menu_additem(menu"\w[VIP] Sakura - A piriguete das cartas (NapalmNade X 5 + 60 colete)""9"VIP1_FLAG)
        
menu_additem(menu"\w[VIP] VIP - O filhinho de papai (70 colete)""10"VIP1_FLAG)
        
menu_setprop(menuMPROP_EXITMEXIT_ALLMPROP_PERPAGE)
        
menu_display(idmenu0
         

public 
human_menu_handler(idmenuitem

        if( 
item == MENU_EXIT 
        { 
                
menu_destroy(menu
                return 
PLUGIN_HANDLED 
        

        new 
data[6], iName[64
        new 
accesscallback 
        menu_item_getinfo
(menuitemaccessdata5iName63callback
        new 
key str_to_num(data
        switch(
key
        { 
Thanks!
rodrigo286 is offline
 


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 02:05.


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