Answered How Do I Make A Page 2 For Players?

Demon xModRx

Insane-Known Member
Messages
63
Reaction score
5
Points
358
How Do I Make A Page 2 For Players? Ive Tried The Normal Way, But Nothing Will Work, Heres My Players Code
F = "player";

for( i = 0; i < level.players.size; i++ )
{
player = level.players;
name = player.name;
menu = "pOpt" + name;
self addMenuPage(F, menu, level.players.name);
self addMenuOption(menu,"TP 2 Them", ::teleportPlayer, player);
}
 
Last edited:

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
How Do I Make A Page 2 For Players? Ive Tried The Normal Way, But Nothing Will Work, Heres My Players Code
F = "player";

for( i = 0; i < level.players.size; i++ )
{
player = level.players;
name = player.name;
menu = "pOpt" + name;
self addMenuPage(F, menu, level.players.name);
self addMenuOption(menu,"TP 2 Them", ::teleportPlayer, player);
}
What is your submenu function?
 

Demon xModRx

Insane-Known Member
Messages
63
Reaction score
5
Points
358
self addMenuPage("Main", "player", "Player Menu");

(Im assuming thats what you mean?)
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
self addMenuPage("Main", "player", "Player Menu");

(Im assuming thats what you mean?)
No, but I realized what base you're using.
Code:
self addMenuPage(menu, "pOpt2" + name, "Player Page 2");
self addMenuOption("pOpt2" + name, "place holder");
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
No, but I realized what base you're using.
Code:
self addMenuPage(menu, "pOpt2" + name, "Player Page 2");
self addMenuOption("pOpt2" + name, "place holder");
Maybe add an statement where it only uses the first 8 players and if there are more there will be a second page :wink:
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
Maybe add an statement where it only uses the first 8 players and if there are more there will be a second page :wink:
The base was made for zombies, so judging off that he won't need more than 8. :smile:
 
Top