Raised This Month: $ Target: $400
 0% 

Blank line in menu.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 03-08-2006 , 09:48   Blank line in menu.
Reply With Quote #1

How to make a blank line in a menu (new style)?

thx
Obbin is offline
SSJ2GOKU
Senior Member
Join Date: Oct 2005
Location: Belgium
Old 03-08-2006 , 09:54  
Reply With Quote #2

i would say, add a new item with nothing as name

with nothing i mean this "" or " " (a space)
SSJ2GOKU is offline
Send a message via MSN to SSJ2GOKU
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 03-08-2006 , 09:56  
Reply With Quote #3

i thought it was with the"^n" then it has no number or any posible action.
wouter is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 03-08-2006 , 09:57  
Reply With Quote #4

Oh thnks!
Is there any way of getting color in this menus as well?
Im pretty new to menus
Obbin is offline
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 03-08-2006 , 10:00  
Reply With Quote #5

think it was somethink like this: "\w" for white text; "\r" for red text; "\y" for yellow text.
but in amxx studio you have a tab "genatartors" there it is just to easy to be true
wouter is offline
SSJ2GOKU
Senior Member
Join Date: Oct 2005
Location: Belgium
Old 03-08-2006 , 10:02  
Reply With Quote #6

it aint so easy yet wouter, i hoped it would be more easy then now
SSJ2GOKU is offline
Send a message via MSN to SSJ2GOKU
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 03-08-2006 , 10:05  
Reply With Quote #7

oh yea your right it is the old style wish is to easy sry bout that
wouter is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 03-08-2006 , 10:20  
Reply With Quote #8

Okay i just realized that i don't know how to show the menu to a player!


I want to show this menu:
Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "New Plugin" #define VERSION "1.0" #define AUTHOR "Author" new mBuyMenu // Menu new mcbBuyMenu // Menu Callback public plugin_init() {         mBuyMenu = menu_create("New style menu", "mh_BuyMenu")     mcbBuyMenu = menu_makecallback("mcb_BuyMenu")     menu_additem(mBuyMenu, "1. option 1", "ma_BuyMenu", ADMIN_USER, mcbBuyMenu)     menu_additem(mBuyMenu, "2. option 2", "ma_BuyMenu", ADMIN_USER, mcbBuyMenu)     menu_additem(mBuyMenu, "3. option 3", "ma_BuyMenu", ADMIN_USER, mcbBuyMenu)     menu_additem(mBuyMenu, "4. option 4", "ma_BuyMenu", ADMIN_USER, mcbBuyMenu)     menu_additem(mBuyMenu, "5. option 5", "ma_BuyMenu", ADMIN_USER, mcbBuyMenu)     menu_additem(mBuyMenu, "6. option 6", "ma_BuyMenu", ADMIN_USER, mcbBuyMenu)     menu_additem(mBuyMenu, "7. option 7", "ma_BuyMenu", ADMIN_USER, mcbBuyMenu)     menu_additem(mBuyMenu, "8. option 8", "ma_BuyMenu", ADMIN_USER, mcbBuyMenu)     menu_additem(mBuyMenu, "9. option 9", "ma_BuyMenu", ADMIN_USER, mcbBuyMenu)     menu_additem(mBuyMenu, "0. exit", "ma_BuyMenu", ADMIN_USER, mcbBuyMenu)     register_plugin(PLUGIN, VERSION, AUTHOR) } public mh_BuyMenu(id, menu, item) {     switch(item)     {         case 1:         {             lol(id)         }             case 2:         {             lol(id)         }             case 3:         {             lol(id)         }             case 4:         {             lol(id)         }             case 5:         {             lol(id)         }             case 6:         {             lol(id)         }             case 7:         {             lol(id)         }             case 8:         {             lol(id)         }             case 9:         {             lol(id)         }             case 10:         {             lol(id)         }         }         return 0; } public lol(id) {     client_print(id, print_chat, "WORKS!") } public ma_BuyMenu(id) {     /* This event is called when an item was selected */ } public mcb_BuyMenu(id, menu, item) {     return ITEM_ENABLED }
Obbin is offline
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 03-08-2006 , 10:28  
Reply With Quote #9

you must put in plugin_init
Code:
register_menucmd(register_menuid("Which Action?"), keys, "mh_BuyMenu")
or something
wouter is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-08-2006 , 11:25  
Reply With Quote #10

I think the old style menu is much easier to use...
[ --<-@ ] Black Rose is offline
Reply



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 20:26.


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