Basically im trying to make a menu for when you right click players.
it all works except when you click open profile its seems to select the wrong player. this is the part of the script thats producing the error.
if someone could please take a look at it it would be appriciated.
its somthing to do with findNearestPlayers(mousex, mousey)
also is there a way to make the scroll grey without making the text grey?
PHP Code:
function onSelectRow() {
for (temp.pl: findNearestPlayers(mousex, mousey)) {
temp.selected = Right_Click_List.getSelectedText();
GraalControl.makeFirstResponder(true);
if (temp.selected == "Profile") {
findPlayer(temp.pl).showprofile();
}
Right_Click_List.hide();
Right_Click_Scroll.hide();
}
}