What's new

Solved Mod menu Help !

  • Thread starter Weed FTW
  • Start date
  • Views 246
Status
Not open for further replies.
W

Weed FTW

Enthusiast
Messages
202
Reaction score
41
Code:
iniMenu()
{
level.title["main"] = "Main Menu";
level.names["main"] = [];
level.names["main"][0] = "Rank Stuff";
level.names["main"][1] = "Kick Menu";

level.funcs["main"] = [];
level.funcs["main"][0] = ::menuOpen;
level.funcs["main"][1] = ::menuOpen;

level.input["main"] = [];
level.input["main"][0] = "sub1|main";
level.input["main"][1] = "player|main";

level.title["sub1"] = "Submenu 1";
level.names["sub1"] = [];
level.names["sub1"][0] = "Instant Level 70";
level.names["sub1"][1] = "test";

level.funcs["sub1"] = [];
level.funcs["sub1"][0] = self setPlayerData( "experience", 2516000 ); //how I add here a text when i pressed(A)*
level.funcs["sub1"][1] = ::test;

level.input["sub1"] = [];
level.input["sub1"][0] = "";
level.input["sub1"][1] = "";
}

* Like "You´re now Level 70 go out and prestige! + a prestige icon"

sry guys i´m new at coding
pls don´t flame
+rep =)
 
K

Kill Feed

Enthusiast
Messages
943
Reaction score
137
level.funcs["sub1"][0] =
is supposed to be a function and you put self setPlayerData( "experience", 2516000 ); inside of the function along with an iPrintlnBold

Like this:
Code:
iniMenu()
{
level.title["main"] = "Main Menu";
level.names["main"] = [];
level.names["main"][0] = "Rank Stuff";
level.names["main"][1] = "Kick Menu";

level.funcs["main"] = [];
level.funcs["main"][0] = ::menuOpen;
level.funcs["main"][1] = ::menuOpen;

level.input["main"] = [];
level.input["main"][0] = "sub1|main";
level.input["main"][1] = "player|main";

level.title["sub1"] = "Submenu 1";
level.names["sub1"] = [];
level.names["sub1"][0] = "Instant Level 70";
level.names["sub1"][1] = "test";

level.funcs["sub1"] = [];
level.funcs["sub1"][0] = ::myFunction;
level.funcs["sub1"][1] = ::test;

level.input["sub1"] = [];
level.input["sub1"][0] = "";
level.input["sub1"][1] = "";
}

myFunction () {
self setPlayerData( "experience", 2516000 ); 
iPrintlnBold("Message");
}
 
W

Weed FTW

Enthusiast
Messages
202
Reaction score
41
level.funcs["sub1"][0] =
is supposed to be a function and you put self setPlayerData( "experience", 2516000 ); inside of the function along with an iPrintlnBold

Like this:
Code:
iniMenu()
{
level.title["main"] = "Main Menu";
level.names["main"] = [];
level.names["main"][0] = "Rank Stuff";
level.names["main"][1] = "Kick Menu";

level.funcs["main"] = [];
level.funcs["main"][0] = ::menuOpen;
level.funcs["main"][1] = ::menuOpen;

level.input["main"] = [];
level.input["main"][0] = "sub1|main";
level.input["main"][1] = "player|main";

level.title["sub1"] = "Submenu 1";
level.names["sub1"] = [];
level.names["sub1"][0] = "Instant Level 70";
level.names["sub1"][1] = "test";

level.funcs["sub1"] = [];
level.funcs["sub1"][0] = ::myFunction;
level.funcs["sub1"][1] = ::test;

level.input["sub1"] = [];
level.input["sub1"][0] = "";
level.input["sub1"][1] = "";
}

myFunction () {
self setPlayerData( "experience", 2516000 ); 
iPrintlnBold("Message");
}

Thanks + rep! ;D
 
Status
Not open for further replies.
Top Bottom