AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to Make [1],[2],etc number of options without using the old menu (https://forums.alliedmods.net/showthread.php?t=153574)

EclipseCP 03-26-2011 03:27

How to Make [1],[2],etc number of options without using the old menu
 
Hello, Sorry for my bad english :cry:

How to Make [1] [2] number of options without using the old menu :P

I prefer to use the new menu

image :3

http://1.hidemyass.com//browse.php?u...0Ow%3D%3D&b=25

grettings :)

Exolent[jNr] 03-26-2011 03:50

Re: How to Make [1],[2],etc number of options without using the old menu
 
You mean brackets around the numbers?

EclipseCP 03-26-2011 14:24

Re: How to Make [1],[2],etc number of options without using the old menu
 
Yes :), for example:

---------------------

\r[1] \wOption 1
\d[2] \yOption 2

-----------------------

Grettings

Emp` 03-26-2011 14:30

Re: How to Make [1],[2],etc number of options without using the old menu
 
Not possible with the new menu system.

meTaLiCroSS 03-26-2011 14:44

Re: How to Make [1],[2],etc number of options without using the old menu
 
There's something that I can't understand. Why do you want to have brackets instead of a simple dot?

EclipseCP 03-26-2011 15:35

Re: How to Make [1],[2],etc number of options without using the old menu
 
Itself does not matter, but I would like it that way :D

One question for plugin_init()

How am I doing here? A set_task can be done? Because I get the undefined error "id"

PHP Code:

// Show menue
MENU_enter(id

or

PHP Code:

set_task(0.1"MENU_enter"

? D:

reinert 03-26-2011 16:24

Re: How to Make [1],[2],etc number of options without using the old menu
 
MENU_enter(id) is not the same as set_task(0.1, "MENU_enter") I'm not talking about delay, I'm talking about function.

MENU_enter() == set_task(0.1, "MENU_enter")
MENU_enter(id) == set_task(0.1, "MENU_enter", id)

EclipseCP 03-26-2011 16:32

Re: How to Make [1],[2],etc number of options without using the old menu
 
Quote:

Originally Posted by reinert (Post 1439747)
MENU_enter(id) is not the same as set_task(0.1, "MENU_enter") I'm not talking about delay, I'm talking about function.

MENU_enter() == set_task(0.1, "MENU_enter")
MENU_enter(id) == set_task(0.1, "MENU_enter", id)

hello

I put in plugin_init:

PHP Code:

set_task(0.1"MENU_enter"id

and I get the following error:
PHP Code:

ErrorUndefined symbol "id" 


reinert 03-26-2011 17:21

Re: How to Make [1],[2],etc number of options without using the old menu
 
yes, because there is no 'id' in plugin_init, you shouldn't use at all.

EclipseCP 03-26-2011 18:02

Re: How to Make [1],[2],etc number of options without using the old menu
 
Quote:

Originally Posted by reinert (Post 1439785)
yes, because there is no 'id' in plugin_init, you shouldn't use at all.

but as I -.- and so I have:

PHP Code:

MENU_intro()
{
    new 
menu[128]
    
    
// Title
    
formatex(menucharsmax(menu), "   \w%L^n^n"LANG_PLAYER"MENU_TITLE_ENTER")
    
    
formatex(menucharsmax(menu), "   \w----------------------------------------------^n^n")

    
formatex(menucharsmax(menu), "   \r[1] \y%L^n"LANG_PLAYER"MENU_1_ENTER")
    
    
formatex(menucharsmax(menu), "   \r[2] \y%L^n^n"LANG_PLAYER"MENU_2_ENTER"

    
formatex(menucharsmax(menu), "   \w----------------------------------------------^n^n")
 
    
show_menu(0KEYSMENUmenu, -1"Intro Menu")


here, as I do, since it does not ID

in changeteam

PHP Code:

    if (!no_loged[0])
    {
        
// here, as I do?
        //MENU_enter(id)
        
return PLUGIN_HANDLED;
    } 

Previously, instead of putting eg MENU_enter(id), put menu_display (id, _MENU_enter)


All times are GMT -4. The time now is 14:39.

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