I want to make a 2 pages menu but I don't know how to make.Please help.
Forum
CS2D Scripts Two pages menuTwo pages menu
9 replies 1
I want to make a 2 pages menu but I don't know how to make.Please help.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
addhook("serveraction","_action") function _action(id,a) 	if a == 1 then 		menu(id,"Test,1,2,3,4,5,6,7,8,Next") 	end end addhook("menu","_menu") function _menu(id,title,button) 	if title== "Test" then 		if button == 9 then 			menu(id,"Test 2,1,2,3,4,5,6,7,8,9") 		end 	end end
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("serveraction","_action") function _action(id,b) if b == 1 then menu(id,"Menu,1,2,3,4,5,6,7,8,Next") end end addhook("menu","_menu") function _menu(id,title,button) if title== "Test" then if button == 9 then menu(id,"Menu,9,10,11,12,13,14,15,16,17") 	end end
@ Jynxxx: @ knight-:
Jynxxx has written
Looks like you just copied mine, wow you such a genius. And you missing an end.
Obviously.
1 if title or button = 2 End
No Read if button
3 end
@ Jynxxx: Sory I'm Stupid
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
addhook("menu","_menu") function _menu(id,title,button) -- this is your menu function you place one end at the bottom or after done with the hook 	if title== "Test" then -- If statements need 1 end at all times 		if button == 9 then -- here is another if statement so you place another end 			menu(id,"Menu,9,10,11,12,13,14,15,16,17") 		end -- this end is to close the if button statement 	end -- this end it to close the if title statement end -- this end is to close the function
1