Forum

> > CS2D > Scripts > Menu not Working?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Menu not Working?

6 replies
To the start Previous 1 Next To the start

old Menu not Working?

Bobakrome
User Off Offline

Quote
Aye people , I tried make my menu (edited) and i dont know what is wrong in there just check it

Spoiler >


Its for editing admin script beta it should work no? But it doesn't for me..

old Re: Menu not Working?

Jynxxx
User Off Offline

Quote
line 48
1
elseifbuton==3
change
to
1
elseif buton==3
there done please indent it, kinda hard to read

old Re: Menu not Working?

Cure Pikachu
User Off Offline

Quote
@user Jynxxx: Thanks for finding the error.
1
2
3
4
elseif buton==2 then -- Added a then
	menu(id,"Spawn NPCs,Zombie,HeadCrab,Snark,Vortigaunt,Soldier,Back")
elseif buton==3 then -- Same applies
	menu(id,"Spawn Object - Page 1/3,Barricade,Barbed Wire,Wall I,Wall II,Wall III,Gate Field,Dispenser,Next,Back")
Just found 2 missing thens.

old Re: Menu not Working?

sheeL
User Off Offline

Quote
I do not think that he did not want to know the error
You are asking to fix it

old Re: Menu not Working?

Bobakrome
User Off Offline

Quote
So do I have to add then after all the
1
elseif buton =# (then)

removing the "(" ")" or i have just to add space at line 48?
edited 1×, last 31.12.11 05:13:19 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview