English What is wrong with this script?!

5 replies
Goto Page
To the start Previous 1 Next To the start
Up
Mami Tomoe
User
Offline Off
(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...
It's hard being the best girl in the whole entire world
13.09.15 04:26:34 am
Up
eledah
User
Offline Off
Do you have a cs2d lua hook menu hook?
[̲̅$̲̅(̲̅ ͡° ͜ʖ ͡°̲̅)̲̅$̲̅]
13.09.15 05:25:59 am
Up
Mami Tomoe
User
Offline Off
@user eledah: I also tried this if that's what you mean:
More >
It's hard being the best girl in the whole entire world
13.09.15 10:35:27 am
Up
GeoB99
Moderator
Offline Off
Code:
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.
13.09.15 12:55:10 pm
Up
eledah
User
Offline Off
You need to put this part

Code:
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.
[̲̅$̲̅(̲̅ ͡° ͜ʖ ͡°̲̅)̲̅$̲̅]
13.09.15 03:15:53 pm
Up
Mami Tomoe
User
Offline Off
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!
It's hard being the best girl in the whole entire world
To the start Previous 1 Next To the start