Raised This Month: $ Target: $400
 0% 

[Help] How do I add blank options on the old menu system


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NaimB77
Member
Join Date: Aug 2012
Old 11-16-2013 , 08:29   [Help] How do I add blank options on the old menu system
Reply With Quote #1

I want to know how I add blank options on the old menu system.
The reason why i'm using the old menu system is, cause i'm editing a plugin
( http://forums.alliedmods.net/showthread.php?p=378952 )

And I don't really want to damage anything of the plugin so, i'm asking help of you guys.

PHP Code:
public display_knife(id) {
    new 
menuBody[512]
    
add(menuBody511"\rKnife Mod\w^n")
    
add(menuBody511"\r1. \wMachete \y[\rMore Damage/Low Speed\y]\w^n")
    
add(menuBody511"\r2. \wBak Knife \y[\rNo Footsteps\y]\w^n")
    
add(menuBody511"\r3. \wPocket Knife \y[\rHigh Speed\y]\w^n")
    
add(menuBody511"\r4. \wButcher Knife \y[\rLow Gravity]\w^n")
    
add(menuBody511"\r5. \wDefault Knife \y[\rHealth Regeneration\y]\w^n^n")
    
add(menuBody511"\r0. \wExit^n")
    
    new 
keys = ( 1<<1<<1<<1<<1<<1<<)
    
show_menu(idkeysmenuBody, -1"Knife Mod")

That's the code, so I want to make a blank option right after "Knife Mod" and Option "5" !

Allthough thx for helping have a nice day !
NaimB77 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-16-2013 , 12:23   Re: [Help] How do I add blank options on the old menu system
Reply With Quote #2

If by blank option you mean an empty line, just add another new line to the 2 that are already there
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Gasa
Senior Member
Join Date: Sep 2013
Old 11-16-2013 , 21:11   Re: [Help] How do I add blank options on the old menu system
Reply With Quote #3

PHP Code:
public display_knife(id) { 
    new 
menuBody[512
    
add(menuBody511"\rKnife Mod\w^n^n"
    
add(menuBody511"\r1. \wMachete \y[\rMore Damage/Low Speed\y]\w^n"
    
add(menuBody511"\r2. \wBak Knife \y[\rNo Footsteps\y]\w^n"
    
add(menuBody511"\r3. \wPocket Knife \y[\rHigh Speed\y]\w^n"
    
add(menuBody511"\r4. \wButcher Knife \y[\rLow Gravity]\w^n"
    
add(menuBody511"\r5. \wDefault Knife \y[\rHealth Regeneration\y]\w^n^n"
    
add(menuBody511"\r0. \wExit^n"
     
    new 
keys = ( 1<<1<<1<<1<<1<<1<<
    
show_menu(idkeysmenuBody, -1"Knife Mod"

Gasa 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 23:21.


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