Forum

> > CS2D > Scripts > My menu button doesn't work
Forums overviewCS2D overview Scripts overviewLog in to reply

English My menu button doesn't work

3 replies
To the start Previous 1 Next To the start

old My menu button doesn't work

Rhaast
User Off Offline

Quote
So basically from the menus "Question 1 - 4" on quiz menu, they work fine.But when "Question 5" menu buttons, it doesn't work

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

old Re: My menu button doesn't work

Yates
Reviewer Off Offline

Quote
Two things that will help solve your issue:
1.
print(t)

2. Grammar.

No problem, happy to help, no need for thanks.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview