Reviving this thread!
EDIT: I got it working. However, I'm unsure how to code a next page...hmm
PHP Code:
//Clicked Menu 3 (Friends List)
function MenuButton3Action() {
if (Friends1.visible == true) {
for(temp.i=0;temp.i=<clientr.friends.size() - 1;temp.i++) {
("Friends"@i).visible = false;
}
return;
}
if (clientr.friends == 0) {
player.chat = "I have no friends!";
} else {
temp.add = 0;
for(temp.i=0;temp.i=<clientr.friends.size() - 1;temp.i++) {
("Friends"@i).visible = true;
temp.add += 30;
new GuiButtonCtrl("Friends"@i) {
profile = GuiBlueButtonProfile;
height = 20;
width = 200;
x = 600;
y = 200 + temp.add;
text = clientr.friends[i];
thiso.catchevent(name,"onMouseDown","friendsclick");
}
}
}
}
function friendsclick(obj) {
temp.friend = obj.name.substring(7);
triggerserver("gui","System/Profile","Player",clientr.friends[temp.friend]);
}