Raised This Month: $ Target: $400
 0% 

Help with an menu.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BalkY
Junior Member
Join Date: Sep 2007
Location: Bulgaria
Old 09-26-2007 , 10:42   Help with an menu.
Reply With Quote #1

Hi, i have this menu
public simple_menu(id, level, cid) {
if( !cmd_access(id, level, cid, 1)) {
return PLUGIN_HANDLED
}

show_simple_menu( id, 0 )

return PLUGIN_HANDLED
}
public show_simple_menu( id, pos ) {
if( pos < 0 )
return

new menuBody[512]
new keys = (1<<9)
new key = 0

new len = format(menuBody,511, "%s", "\ySimple Menu\R^n\w^n" )

keys |= (1<<key)
key++
len += format(menuBody[len],511-len,"%d. ^n\w", key)

keys |= (1<<key)
key++
len += format(menuBody[len],511-len,"%d. ^n\w", key)


len += format(menuBody[len],511-len,"0. Quit menu")

show_menu( id, keys, menuBody )
}
public simple_menua( id,key ) {
switch( key ) {
case 0: {
}
case 1: {
}
return PLUGIN_HANDLED
}
}

How can i get from there two buttons one result?
Like when i press one its save a var like: one = hi
when i press two: two = there
so i want to show me hi there like one result
i hope you undarstand me
BalkY is offline
Send a message via Skype™ to BalkY
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 16:08.


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