Forum

> > CS2D > Scripts > P.r.o.b.l.e.m with "Next" button
Forums overviewCS2D overview Scripts overviewLog in to reply

English P.r.o.b.l.e.m with "Next" button

2 replies
To the start Previous 1 Next To the start

old P.r.o.b.l.e.m with "Next" button

hunter139
User Off Offline

Quote
here the part of the script containing the menu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
-----------------------
-- CLASS SELECTION --
-----------------------
addhook("menu","sample.classes.menu")
function sample.classes.menu(id,title,sel)
     if title=="Server Classes (Page 1/3)" then
          if sel>=1 and sel<=8 then
               sample.classes.class[id]=sel
                    if sel==9 then
                         menu(id,"Server Classes (Page 2/3),Builder,Trapper,Grenadier,Runner,Team Helper,Explosion Maker,Pro Sniper,---> Next Page|(Page 3),<--- Previous Page|(Page 1)") 
		end
          end
     end
     if title=="Server Classes (Page 2/3)" then
          if sel>=1 and sel<=7 then
               sample.classes.class[id]=sel+8
                    if sel==8 then
                         menu(id,"Server Classes (Page 3/3),SWAT,1 Shoot Kill,Strong/Fat,Toxic Healer,Owner Class|Only For Owners,Admin Class|Only For Admins,No Class|Normal (Knife),<--- Previous Page|(Page 2)")
                    end
			if sel==9 then
			menu(id,"Server Classes (Page 1/3),Random|Random Class,Zombie,Soldier,Pyro,Ghost,Heavy Killer,Super Killer,Destroyer,---> Next Page|(Page 2)") 
			end
          end
     end
     if title=="Server Classes (Page 3/3)" then
          if sel>=1 and sel<=7 then
               sample.classes.menu[id]=sel+15
                    if sel==8 then
                         menu(id,"Server Classes (Page 2/3),Builder,Trapper,Grenadier,Runner,Team Helper,Explosion Maker,Pro Sniper,---> Next Page|(Page 3),<--- Previous Page|(Page 1)") 
                    end
          end
end
Please help !!

old Re: P.r.o.b.l.e.m with "Next" button

Devil-Thanh
GAME BANNED Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
-----------------------
-- CLASS SELECTION --
-----------------------
addhook("menu","sample.classes.menu")
function sample.classes.menu(id,title,sel)
     if title=="Server Classes (Page 1/3)" then
          if sel>=1 and sel<=8 then
               sample.classes.class[id]=sel	
          elseif sel==9 then
                menu(id,"Server Classes (Page 2/3),Builder,Trapper,Grenadier,Runner,Team Helper,Explosion Maker,Pro Sniper,---> Next Page|(Page 3),<--- Previous Page|(Page 1)") 
          end
     end
     if title=="Server Classes (Page 2/3)" then
          if sel>=1 and sel<=7 then
               sample.classes.class[id]=sel+8
          elseif sel==8 then
               menu(id,"Server Classes (Page 3/3),SWAT,1 Shoot Kill,Strong/Fat,Toxic Healer,Owner Class|Only For Owners,Admin Class|Only For Admins,No Class|Normal (Knife),<--- Previous Page|(Page 2)")
          elseif sel==9 then
               menu(id,"Server Classes (Page 1/3),Random|Random Class,Zombie,Soldier,Pyro,Ghost,Heavy Killer,Super Killer,Destroyer,---> Next Page|(Page 2)") 
          end
     end
     if title=="Server Classes (Page 3/3)" then
          if sel>=1 and sel<=7 then
               sample.classes.menu[id]=sel+15
          elseif sel==8 then
               menu(id,"Server Classes (Page 2/3),Builder,Trapper,Grenadier,Runner,Team Helper,Explosion Maker,Pro Sniper,---> Next Page|(Page 3),<--- Previous Page|(Page 1)") 
          end
	end
end
Here. Sr if there is a error because i haven't tested it yet.

old Re: P.r.o.b.l.e.m with "Next" button

hunter139
User Off Offline

Quote
i found something incorrect, so i corrected it

i dont know if :

your script solved my problem
or when i corrected the mistake i solved it

but thx anyway, now works
thanks
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview