AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved] Menu 9 Items on the first Site (https://forums.alliedmods.net/showthread.php?t=147393)

Stylaa 01-08-2011 14:46

[Solved] Menu 9 Items on the first Site
 
Hay Mates ;)

So my Menu got 9 Items and the Cancel button but i dont want 2 Pages

My Code looks like this

And i want all 9 Items on the First Page and i dont want the Next / Prevous Page Items^^

PHP Code:

new menu menu_create("My Menu""menu_handler")
    
    
menu_additem(menu"""1"0)
    
menu_additem(menu"""2"0)
    
menu_additem(menu"""3"0)
    
menu_additem(menu"""4"0)
    
menu_additem(menu"""5"0)
    
menu_additem(menu"""6"0)
    
menu_additem(menu"""7"0)
    
menu_additem(menu"""8"0)
    
menu_additem(menu"""9"0)
    
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0

Greetings

ConnorMcLeod 01-08-2011 14:55

Re: Menu 9 Items on the first Site
 
edit Emp`: this is wrong.

Max items per page is 7, if you want 9 you have to use old menu system.

Stylaa 01-08-2011 14:56

Re: Menu 9 Items on the first Site
 
First Thanks for this Amazing fast answer

but i dont know the Old System

It whould be great if someone can give an example ;)

Arkshine 01-08-2011 15:30

Re: Menu 9 Items on the first Site
 
There are tutorials. Please search.

Emp` 01-08-2011 15:36

Re: Menu 9 Items on the first Site
 
You can set MPROP_PERPAGE to 0 to show up to 10 items. However, this disables the Next, Back, and Exit buttons. So if you still want an Exit button, you will have to create one by yourself.

ConnorMcLeod 01-08-2011 16:12

Re: Menu 9 Items on the first Site
 
Quote:

Originally Posted by Emp` (Post 1389251)
You can set MPROP_PERPAGE to 0 to show up to 10 items. However, this disables the Next, Back, and Exit buttons. So if you still want an Exit button, you will have to create one by yourself.

Thanks, didn't know that, had only tested 9, i would like to disable next/prev and to let enabled exit option...

EDIT :
/me_the_idiot : Exit option can be done manually then ;)

reinert 01-08-2011 18:18

Re: Menu 9 Items on the first Site
 
Hey help me also there please:

http://forums.alliedmods.net/showpos...9&postcount=11

fysiks 01-08-2011 18:29

Re: Menu 9 Items on the first Site
 
Quote:

Originally Posted by reinert (Post 1389350)

Don't hijack threads.


All times are GMT -4. The time now is 02:09.

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