Raised This Month: $ Target: $400
 0% 

Making Menus


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-21-2005 , 13:16  
Reply With Quote #2

lol, well if you read my post you'd know I don't know how to make a working menu... but just changing the menu text is really easy. If you posted your code I could have given you a better example, but i'll use my code:

new Menu[1024] //declares the variable for the menu text

now.. here's what you want in your procedure that shows the menu.. for example:
Code:
register_clcmd("AllianceMenu", "ShowAllianceMenu") //calls the menu when AllianceMenu is typed in console

so in this procedure you would have this:

Code:
AllianceMenu(id) {      format(Menu, 1023, "My Menu:^n^n1. Fun %s^n2. Heal^n3. Slap^n^n0. Cancel", FunOn)     show_menu(id, MKeys3, Menu) }

Note you must have FunOn declared as a string variable. (new FunOn[5] In your code, when fun is turned on you want to do this

format(FunOn, 4, "[ON]") //sets FunOn to the string "[ON]"

When you turn fun off in your code you want to do this:

format(FunOn, 5, "[OFF]") //sets FunOn to the string "[OFF]"

That's pretty much it.
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
 



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 09:50.


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