Quote:
Originally Posted by Gunderak
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();
}
}
|
PHP Code:
findPlayer(temp.pl).showprofile();
is incorrect.
temp.pl, in this case, is already a player object.
PHP Code:
temp.pl.showProfile();
is all you need.
The former will probably work, though. The issue that's preventing it from working is that you're not checking if the player is actually at the mouse coordinates.