Answered How Do I Make A Page 2 For Players?

DemonHax

Member
Messages
43
Points
8
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
Premium Member
Donator
Messages
1,303
Points
748
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?
 

DemonHax

Member
Messages
43
Points
8
self addMenuPage("Main", "player", "Player Menu");

(Im assuming thats what you mean?)
 

candy

G59 Terrorist
Staff member
Premium Member
Donator
Messages
1,303
Points
748
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
4,480
Points
828
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
Premium Member
Donator
Messages
1,303
Points
748
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