I tak w menu startym mam problem jak i w menu nowym.
Jaki mam problem w menu nowy:
A więc tak np.:
new menu1 = menu_create ("\rTO", "SelectMenu1")
menu_additem(menu1, "\r[\y 1 \r] \wTO")
menu_additem(menu1, "\d - ")
menu_additem(menu1, "\d - ")
menu_additem(menu1, "\d - ")
menu_additem(menu1, "\d - ")
menu_additem(menu1, "\r[\y 2 \r] \wTO")
menu_additem(menu1, "\r[\y 3 \r] \wTO")
menu_additem(menu1, "\r[\y 9 \r] \wWyjscie")
Wszostko pięknie działa tylko pisze: 1. [ 1 ] zamiast [ 1 ] Jak daje zamiast menu_additem daje menu_addtext to menu nie chodzi chyba że dam na początek: menu_additem i potem reszte na menu_addtext o tak:
new menu1 = menu_create ("\rWybierz ", "SelectMenu1")
menu_additem(menu1, "\r[\y 1 \r] \wTO", 1)
menu_addtext(menu1, "\d - ", 9)
menu_addtext(menu1, "\d - ", 9)
menu_addtext(menu1, "\d - ", 9)
menu_addtext(menu1, "\d - ", 9)
menu_addtext(menu1, "\r[\y 2 \r] \wTO", 1)
menu_addtext(menu1, "\r[\y 3 \r] \wTO", 2)
menu_addtext(menu1, "\r[\y 9 \r] \wWyjscie", 9)
, 1 itp klawisze użycia.
A Jak zrobić bez pierwszego additem? żeby było addtext? Wie ktoś?
A teraz menu stare:
W tym me nu jest na odwrót bo chodzi menu nie chodzą klawisze.
I jak zrobić żeby chodziło:
A o to menu:
#define Klawisze (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
public plugin_init()
{
register_clcmd("say /menu","menu1");
register_clcmd("say /menu2","menu2");register_clcmd("menu","menu1");
register_clcmd("menu1","menu1");
register_clcmd("menu2","menu2");
register_menu("menu1", Klawisze, "SelectMenu1");
register_menu("menu2", Klawisze, "SelectMenu2"),
}
public menu1(id)
{
show_menu(id, Klawisze, "\rTO^n\r[\y 1 \r] \wTO^n\d - TO^n\d - TO^n\d - TO^n\d - TO^n\d - TO^n\r[\y 2 \r] \wTO^n\r[\y 3 \r] \wTO^n\r[\y 9 \r] \wWyjscie",-1,"menu1");
}
public SelectMenu1(id, menu, item)
{
switch(item)
{
case 1:
{
client_cmd(id,"menu2")
client_cmd(id,"say /menu2")
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 2:
{
client_cmd(id,"menu3")
client_cmd(id,"say /menu3")
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 3:
{
client_cmd(id,"menu4")
client_cmd(id,"say /menu4")
menu_destroy(menu);
return PLUGIN_HANDLED;
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
Jak je edytować by na case 1 była opcja [ 1 ] i na case 2 i 3 opcja [ 2 ] i [ 3 ]
Chyba jest błąd w Klawisze też, ale nie wiem.
Oczywiście za pomoc wynagrodznie