Rules
FAQ
Members List
Search
Register
Login
Raised This Month: $
Target: $400
0%
Search Forums
Show Threads
Show Posts
Advanced Search
Go to Page...
menu_additem with %s | %i | %d
AlliedModders Forum Index
>
AMX Mod X
>
Scripting
>
Scripting Help
Thread Tools
Display Modes
Author
Message
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
05-11-2010 , 15:05 Re: menu_additem with %s | %i | %d
#
1
https://forums.alliedmods.net/showth...46364#EndNotes
Quote:
Originally Posted by
Emp`
End Notes:
[top]
Most of the menu_* natives will throw errors if they are passed an invalid menu. A menu is invalid if it is
-1
.
You can expand on these in many ways, like only have one menu_handler to handle more than 1 menu
If you are using a constant menu (doesn't change at all) you do not need to create and destroy it each time. It is better to save it as a global.
These examples are not completely optimized, but they are for beginners and so they are simplified.
List of Colors for menus: (there are no other colors available)
White - \w
Yellow - \y
Red - \r
Grey/Disabled - \d
To align text to the right - \R
A menu will not show if it does not have any items.
To hide a menu (new or old style) one can do:
Code:
show_menu(id, 0, "^n", 1);
Emp`
View Public Profile
Send a private message to Emp`
Find More Posts by Emp`
AlliedModders Forum Index
>
AMX Mod X
>
Scripting
>
Scripting Help
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Switch to Linear Mode
Hybrid Mode
Switch to Threaded Mode
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 Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Server Discussion
Source Servers (SRCDS)
HL1 Servers (HLDS)
AMX Mod X
News
Bug Reports
General
Off-Topic
Plugins
Suggestions / Requests
Approved Plugins
New Plugin Submissions
Unapproved/Old Plugins
Translation Request
High-Traffic Plugins
GunGame
UAIO (Ultimate All-In-One Plugin)
xREDIRECT
CSDM
AMX Super
RuneMod
Zombie Plague Mod
SuperHero Mod
News
Tech Support
Scripting Help
Off-Topic / General Chat
Heroes
Suggestions / Requests
Approved Heroes
New Submissions
Unapproved/Old Heroes
Module Heroes
SuperHero Mod Stats - By 123
(OLD) Bug Reports
Scripting
Scripting Help
Code Snippets/Tutorials
Module Coding
Donor Access
SourceMod
News
General
Plugins
Plugins
Unapproved Plugins
Plugin/Gameplay Ideas and Requests
High-Traffic Plugins
SourceMod Anti-Cheat
Zombie:Reloaded
SourceBans / SourceBans++
VSH / Freak Fortress
Store
SM_Hosties
HLstatsX:CE
Scripting
Extensions
Snippets and Tutorials
Donor Access
Metamod: Source
Metamod:Source Plugins
Metamod:Source Questions
Coding MM:S Plugins & SM Extensions
Hosted Stuff
Asherkin's Plugins
TFDodgeball
TF2Items
SteamTools
Bail's Plugins
CSDM
CS:S DM
Off-Topic & Trash
Off-Topic
Trash
All times are GMT -4. The time now is
03:32
.
DMCA
-
Archive
-
Top
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode