|
Senior Member
Join Date: Feb 2009
Location: Darmstadt
|

08-07-2010
, 09:42
Re: a simple question / case('X'):
|
#1
|
Thanks for the fast answer but i didnt understand you..
here is a part of the code :
Code:
formatex(menuname, charsmax(menuname), "%L", LANG_SERVER, "JBE_MENU_LASTREQ")
menu = menu_create(menuname, "lastrequest_select")
formatex(option, charsmax(option), "%L", LANG_SERVER, "JBE_MENU_LASTREQ_OPT1")
menu_additem(menu, option, "1", 0)
formatex(option, charsmax(option), "%L", LANG_SERVER, "JBE_MENU_LASTREQ_OPT2")
menu_additem(menu, option, "2", 0)
formatex(option, charsmax(option), "%L", LANG_SERVER, "JBE_MENU_LASTREQ_OPT3")
menu_additem(menu, option, "3", 0)
formatex(option, charsmax(option), "%L", LANG_SERVER, "JBE_MENU_LASTREQ_OPT8")
menu_additem(menu, option, "8", 0)
formatex(option, charsmax(option), "%L", LANG_SERVER, "JBE_MENU_LASTREQ_OPT9")
menu_additem(menu, option, "9", 0)
formatex(option, charsmax(option), "%L", LANG_SERVER, "JBE_MENU_LASTREQ_OPT10")
menu_additem(menu, option, "10", 0)
formatex(option, charsmax(option), "%L", LANG_SERVER, "JBE_MENU_LASTREQ_OPT11")
menu_additem(menu, option, "11", 0)
formatex(option, charsmax(option), "%L", LANG_SERVER, "JBE_MENU_LASTREQ_OPT12")
menu_additem(menu, option, "12", 0)
an here the other part :
Code:
case('8'):
{
formatex(option, charsmax(option), "%L", LANG_SERVER, "JBE_MENU_LASTREQ_SEL8", dst)
player_hudmessage(0, 6, 3.0, {0, 255, 0}, option)
}
case('9'):
{
formatex(option, charsmax(option), "%L", LANG_SERVER, "JBE_MENU_LASTREQ_SEL9", dst)
player_hudmessage(0, 6, 3.0, {0, 255, 0}, option)
}
case('10'):
{
formatex(option, charsmax(option), "%L", LANG_SERVER, "JBE_MENU_LASTREQ_SEL10", dst)
player_hudmessage(0, 6, 3.0, {0, 255, 0}, option)
}
case('11'):
{
formatex(option, charsmax(option), "%L", LANG_SERVER, "JBE_MENU_LASTREQ_SEL11", dst)
player_hudmessage(0, 6, 3.0, {0, 255, 0}, option)
}
case('12'):
{
formatex(option, charsmax(option), "%L", LANG_SERVER, "JBE_MENU_LASTREQ_SEL12", dst)
player_hudmessage(0, 6, 3.0, {0, 255, 0}, option)
}
__________________
|
|