Forum

> > CS2D > Scripts > What is wrong with this script?!
Forums overviewCS2D overview Scripts overviewLog in to reply

English What is wrong with this script?!

5 replies
To the start Previous 1 Next To the start

old What is wrong with this script?!

Mami Tomoe
User Off Offline

Quote
(2 topics a day! high score!!!)
Really I wasted the last 30 minutes not understanding what in the world is wrong with it, it shows no errors, it has no errors (for a newbie's eye) and I'm about to just delete this script and never see it again...

Beware, this script below is full of evil!
More >


My problem is that the "Back" and "Start" buttons on the last page does nothing! They just close the window...

old Re: What is wrong with this script?!

Mami Tomoe
User Off Offline

Quote
@user eledah: I also tried this if that's what you mean:
More >

old Re: What is wrong with this script?!

GeoB99
Moderator Off Offline

Quote
1
2
3
4
5
6
7
if title=="License System Page 5@b" then
		if button==5 then
		ls_4(id)
		elseif button==6 then
			ls_1(id)
		end
end
Note: Not sure if it'll work because I didn't test the code, so it may has some problems. Try it.

old Re: What is wrong with this script?!

eledah
User Off Offline

Quote
You need to put this part

1
2
3
4
5
6
7
if men == "License System Page 5@b" then
     if sel == 8 then
     menu(id,"License System Page 4@b,"..pl_names[22]..","..pl_names[23]..","..pl_names[24]..","..pl_names[25]..","..pl_names[26]..","..pl_names[27]..","..pl_names[28]..",Back,Next")
     elseif sel == 9 then
     menu(id,"License System Page 1@b,"..pl_names[1]..","..pl_names[2]..","..pl_names[3]..","..pl_names[4]..","..pl_names[5]..","..pl_names[6]..","..pl_names[7]..",Back,Next")
     end
end

inside a cs2d lua hook menu hook in order to make it work.

old Re: What is wrong with this script?!

Mami Tomoe
User Off Offline

Quote
Never mind! I found the problem, well it isn't a problem it was just there was already this "if sel" thing far away from the menu function! So its fixed now!
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview