AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Help] How do I add blank options on the old menu system (https://forums.alliedmods.net/showthread.php?t=229866)

NaimB77 11-16-2013 08:29

[Help] How do I add blank options on the old menu system
 
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 !

YamiKaitou 11-16-2013 12:23

Re: [Help] How do I add blank options on the old menu system
 
If by blank option you mean an empty line, just add another new line to the 2 that are already there

Gasa 11-16-2013 21:11

Re: [Help] How do I add blank options on the old menu system
 
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"




All times are GMT -4. The time now is 23:21.

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