Forum

> > CS2D > Scripts > Two pages menu
Forums overviewCS2D overview Scripts overviewLog in to reply

English Two pages menu

9 replies
To the start Previous 1 Next To the start

old Two pages menu

knight-
User Off Offline

Quote
Hi guys!
I want to make a 2 pages menu but I don't know how to make.Please help.

old Re: Two pages menu

Jynxxx
User Off Offline

Quote
1
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

old Re: Two pages menu

RedizGaming
GAME BANNED Off Offline

Quote
1
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

> @user Jynxxx: @user knight-:

old Re: Two pages menu

Jynxxx
User Off Offline

Quote
Looks like you just copied mine, wow you such a genius. And you missing an end.

old Re: Two pages menu

DevGru
User Off Offline

Quote
user Jynxxx has written
Looks like you just copied mine, wow you such a genius. And you missing an end.


Obviously.

old Re: Two pages menu

Jynxxx
User Off Offline

Quote
1
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview