Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EclipseCP
BANNED
Join Date: Dec 2010
Old 03-26-2011 , 03:27   How to Make [1],[2],etc number of options without using the old menu
Reply With Quote #1

Hello, Sorry for my bad english

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

I prefer to use the new menu

image



grettings
EclipseCP is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-26-2011 , 03:50   Re: How to Make [1],[2],etc number of options without using the old menu
Reply With Quote #2

You mean brackets around the numbers?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
EclipseCP
BANNED
Join Date: Dec 2010
Old 03-26-2011 , 14:24   Re: How to Make [1],[2],etc number of options without using the old menu
Reply With Quote #3

Yes , for example:

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

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

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

Grettings
EclipseCP is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-26-2011 , 14:30   Re: How to Make [1],[2],etc number of options without using the old menu
Reply With Quote #4

Not possible with the new menu system.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Old 03-26-2011, 14:42
EclipseCP
This message has been deleted by EclipseCP.
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 03-26-2011 , 14:44   Re: How to Make [1],[2],etc number of options without using the old menu
Reply With Quote #5

There's something that I can't understand. Why do you want to have brackets instead of a simple dot?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
EclipseCP
BANNED
Join Date: Dec 2010
Old 03-26-2011 , 15:35   Re: How to Make [1],[2],etc number of options without using the old menu
Reply With Quote #6

Itself does not matter, but I would like it that way

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:
EclipseCP is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 03-26-2011 , 16:24   Re: How to Make [1],[2],etc number of options without using the old menu
Reply With Quote #7

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)
reinert is offline
EclipseCP
BANNED
Join Date: Dec 2010
Old 03-26-2011 , 16:32   Re: How to Make [1],[2],etc number of options without using the old menu
Reply With Quote #8

Quote:
Originally Posted by reinert View Post
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" 
EclipseCP is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 03-26-2011 , 17:21   Re: How to Make [1],[2],etc number of options without using the old menu
Reply With Quote #9

yes, because there is no 'id' in plugin_init, you shouldn't use at all.
reinert is offline
EclipseCP
BANNED
Join Date: Dec 2010
Old 03-26-2011 , 18:02   Re: How to Make [1],[2],etc number of options without using the old menu
Reply With Quote #10

Quote:
Originally Posted by reinert View Post
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)

Last edited by EclipseCP; 03-26-2011 at 18:05.
EclipseCP 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 14:39.


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