Raised This Month: $ Target: $400
 0% 

Help with menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 01-18-2014 , 10:27   Help with menu
Reply With Quote #1

How to set this menu without that "next" pages?
I want to show this in one page only

PHP Code:
public sayMenu(id) {
    new 
menu menu_create("\rWEAPONS""menu_handler")

    
menu_additem(menu"\wawp""1")
    
menu_additem(menu"\wak47""2")
    
menu_additem(menu"\wm4a1""3")
    
menu_additem(menu"\wfamas^n""4")
    
    
menu_additem(menu"\wdeagle""5")
    
menu_additem(menu"\wgrenades""6")
    
menu_additem(menu"\whelm^n""7")
    
    
menu_additem(menu"\wmain menu""8")
    
    
    
menu_setprop(menu,MPROP_EXITNAME,"quit")
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0)

CHE4TER is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-18-2014 , 10:31   Re: Help with menu
Reply With Quote #2

Code:
menu_setprop(menu, MPROP_PERPAGE, 0 /* Number of items per page (param1 = number, 0=no paginating, 7=default) */);
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 01-18-2014 , 11:17   Re: Help with menu
Reply With Quote #3

Wait, now how i set the EXIT to slot 0?
CHE4TER is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-18-2014 , 12:01   Re: Help with menu
Reply With Quote #4

Use menu_addblank to get Exit to 0
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 01-18-2014 , 12:58   Re: Help with menu
Reply With Quote #5

nothing changes.. maybe my menu is bad coded, what's wrong

PHP Code:
public sayMenu(id) {
    new 
menu menu_create("\rWEAPONS""menu_handler")

    
menu_additem(menu"\wawp""1")
    
menu_additem(menu"\wak47""2")
    
menu_additem(menu"\wm4a1""3")
    
menu_additem(menu"\wfamas^n""4")
    
    
menu_additem(menu"\wdeagle""5")
    
menu_additem(menu"\wgrenades""6")
    
menu_additem(menu"\whelm^n""7")
    
    
menu_additem(menu"\wmain menu""8")
    
menu_additem(menu"\wanother menu","9"
    
    
menu_addblank(menu)
    
    
menu_setprop(menu,MPROP_EXITNAME,"quit")
    
menu_setprop(menuMPROP_PERPAGE0)
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0)


Last edited by CHE4TER; 01-18-2014 at 12:58.
CHE4TER is offline
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 10-31-2015 , 06:34   Re: Help with menu
Reply With Quote #6

What is the way to create a menu with 7/8/9 items (without using next/back pages) and with exit in slot 0?
CHE4TER is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 10-31-2015 , 06:49   Re: Help with menu
Reply With Quote #7

You can have maximum 7 items per page
redivcram is offline
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 10-31-2015 , 07:01   Re: Help with menu
Reply With Quote #8

Quote:
Originally Posted by redivcram View Post
You can have maximum 7 items per page
With old style menu yes, but with the new version i see that isn't possible
CHE4TER is offline
Reply


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 10:04.


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