English My menu button doesn't work

3 replies
Goto Page
To the start Previous 1 Next To the start
16.10.17 05:19:29 pm
Up
Rhaast
User
Offline Off
So basically from the menus "Question 1 - 4" on quiz menu, they work fine.But when "Question 5" menu buttons, it doesn't work

Code:
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
function RPlicenseexam(id,t,b)
     if(t=="License Test") then
          if(b==1) then
               menu(id,"Question 1: How to drive?,Press E to enter and ignite,Stare at the car,Press G to drop weapon")
          end
     end
     if(t=="Question 1: How to drive?") then
          if(b==1) then
               menu(id,"Question 2: How to turn?,Use mouse to steer left and right,Panic,Do nothing")
          end
          if(b==2) then
               msg2(id,"©255000000Wrong Answer! Try Again@C")
          end
          if(b==3) then
               msg2(id,"©255000000Wrong Answer! Try Again@C")
          end
     end
     if(t=="Question 2: How to turn?") then
          if(b==1) then
               menu(id,"Question 3: What to do when someone crosses?,Kill'em, Drive through 'em, Wait for them to cross")
          end
          if(b==2) then
               msg2(id,"©255000000Wrong Answer! Try Again@C")
          end
          if(b==3) then
               msg2(id,"©255000000Wrong Answer! Try Again@C")
          end
     end
     if(t=="Question 3: What to do when someone crosses?") then
          if(b==1) then
               msg2(id,"©255000000Wrong Answer! Try Again@C")
          end
          if(b==2) then
               msg2(id,"©255000000Wrong Answer! Try Again@C")
          end
          if(b==3) then
               menu(id,"Question 4: How can you slow your car down?,Do nothing, Press WSAD + shift, Panic")
          end
     end
     if(t=="Question 4: How can you slow your car down?") then
          if(b==1) then
               msg2(id,"©255000000Wrong Answer! Try Again@C")
          end
          if(b==2) then
               menu(id,"Question 5:  How can you park and get out of the car?,Type /kill, Take a piss, Press e")
          end
          if(b==3) then
               msg2(id,"©255000000Wrong Answer! Try Again@C")
          end
     end
     if(t=="Question 5: How can your park and get out of the car?") then
          if(b==1) then
               msg2(id,"©255000000Wrong Answer! Try Again@C")
          end
          if(b==2) then
               msg2(id,"©255000000Wrong Answer! Try Again@C")
          end
          if(b==3) then
               msg2(id,"©255255255[Car License Centre]: You passed! You can now drive a car!")
          end
     end
end
IMG:https://media1.giphy.com/media/dmLw2NEZ24nIs/100.gif
16.10.17 05:49:47 pm
Up
Yates
Reviewer
Offline Off
Two things that will help solve your issue:
1.
print(t)

2. Grammar.

No problem, happy to help, no need for thanks.
16.10.17 06:10:39 pm
Up
Bowlinghead
User
Offline Off
Line 45 and Line 51 do not match.
Share time limited free games here
16.10.17 06:15:05 pm
Up
Rhaast
User
Offline Off
user Bowlinghead has written:
Line 45 and Line 51 do not match.

Thanks
IMG:https://media1.giphy.com/media/dmLw2NEZ24nIs/100.gif
To the start Previous 1 Next To the start