Forum

> > CS2D > Scripts > Hel with menu
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Hel with menu

13 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Hel with menu

Black Wolf
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
if a == 1 then
		if level[id] == 1 then
			menu(id,"Vip Menu,Medic Armor,FN F2000,,,,,,,Teleport")
		elseif level[id] == 2 then
			menu(id,"Member Menu,Medic Armor,FN F2000,,,,,,,Teleport")
		elseif level[id] == 3 or 4 or 5 then
			menu(id,"Mod Menu,Heavy Armor,FN F2000,,,,,,,Teleport")
		elseif level[id] == 6 or 7 or 8 then
			menu(id,"min Menu,FN F2000,Heavy Armor,Medic Armor,M134,Tmp,Superarmor,God mode| on/off,,Teleport")
		end

Admin/Mod Kommentar

This title... oh my...

alt Re: Hel with menu

Jynxxx
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
if a == 1 then
		if level[id] == 1 then
			menu(id,"Vip Menu,Medic Armor,FN F2000,,,,,,,Teleport")
		elseif level[id] == 2 then
			menu(id,"Member Menu,Medic Armor,FN F2000,,,,,,,Teleport")
		elseif level[id] == 3 or 4 or 5 then
			menu(id,"Mod Menu,Heavy Armor,FN F2000,,,,,,,Teleport")
		elseif level[id] >= 6 then
			menu(id,"min Menu,FN F2000,Heavy Armor,Medic Armor,M134,Tmp,Superarmor,God mode| on/off,,Teleport")
		end

alt Re: Hel with menu

Black Wolf
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
if a == 1 then
          if level[id] == 1 then
               menu(id,"Vip Menu,Medic Armor,FN F2000,,,,,,,Teleport")
          elseif level[id] == 2 then
               menu(id,"Member Menu,Medic Armor,FN F2000,,,,,,,Teleport")
          elseif level[id] == 3 or 4 or 5 then
               menu(id,"Mod Menu,Heavy Armor,FN F2000,,,,,,,Teleport")
          elseif level[id] >= 6 or 7 or 8 then
               menu(id,"min Menu,FN F2000,Heavy Armor,Medic Armor,M134,Tmp,Superarmor,God mode| on/off,,Teleport")
          end

Still not working...

alt Re: Hel with menu

uaiek
User Off Offline

Zitieren
maybe this?
Spoiler >

alt Re: Hel with menu

UnkN
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
if a == 1 then
		if level[id] == 1 then
			menu(id,"Vip Menu,Medic Armor,FN F2000,,,,,,,Teleport")
		elseif level[id] == 2 then
			menu(id,"Member Menu,Medic Armor,FN F2000,,,,,,,Teleport")
		elseif level[id]>=3 and level[id]<=5 then
			menu(id,"Mod Menu,Heavy Armor,FN F2000,,,,,,,Teleport")
		elseif level[id]>=6 and level[id]<=8 then
			menu(id,"Min Menu,FN F2000,Heavy Armor,Medic Armor,M134,Tmp,Superarmor,God mode| on/off,,Teleport")
		end
	end
It works

alt Re: Hel with menu

EngiN33R
Moderator Off Offline

Zitieren
user omg hat geschrieben
u have too many commas

Commas without anything between them mean empty spaces - the more you know.

alt Re: Hel with menu

danh
User Off Offline

Zitieren
user EngiN33R hat geschrieben
user omg hat geschrieben
u have too many commas

Commas without anything between them mean empty spaces - the more you know.

like
,nil,nil,nil, ...

alt Re: Hel with menu

sheeL
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
13
if a == 1 then
          if level[id] == 1 then
               menu(id,"Vip Menu,Medic Armor,FN F2000,,,,,,,Teleport")
          if level[id] == 2 then
               menu(id,"Member Menu,Medic Armor,FN F2000,,,,,,,Teleport")
             end
          if level[id]>=3 and level[id]<=5 then
               menu(id,"Mod Menu,Heavy Armor,FN F2000,,,,,,,Teleport")
            end
          if level[id]>=6 and level[id]<=8 then
               menu(id,"Min Menu,FN F2000,Heavy Armor,Medic Armor,M134,Tmp,Superarmor,God mode| on/off,,Teleport")
          end
          end

alt Re: Hel with menu

EngiN33R
Moderator Off Offline

Zitieren
user danh hat geschrieben
user EngiN33R hat geschrieben
user omg hat geschrieben
u have too many commas

Commas without anything between them mean empty spaces - the more you know.

like
,nil,nil,nil, ...


Almost, except in reality that would just make a load of buttons called 'nil'.

@user sheeL: With your code, unless the conditional statement is the only expression in its chunk, it would close the chunk because of that last end. user UnkN's code is correct if it's one of many expressions in its chunk.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht