Forum
CS2D Scripts Menu inside a menu?Menu inside a menu?
16 replies 1
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
addhook("menu","_menu") function _menu(id,title,button) 	if title == "Menu 1" then 		if button == 1 then 			menu(id,"Menu 2,1") 		end 	end 	if title == "Menu 2" then 		if button == 1 then 			menu(id,"Menu 1,1") 		end 	end end
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
addhook("serveraction","a") function a(id,a) 	if a == 1 then 		menu(id,"Example menu,Go to another menu") 	end end addhook("menu","b") function b(id,t,b) 	if t == "Example menu" then 		if b == 1 then 			menu(id,"Another menu,Click here to msg -Lol-") 		end 	elseif t == "Another menu" then 		if b == 1 then 			msg("Lol") 		end 	end end
Anyway i tried making the menu thing but I failed, so that's why I asked for help.
why r we still posting on this anyway? didnt u figure out how to make a menu by now?
Asking for help is never humilation or fail.
1