View Single Post
  #3  
Old 09-09-2011, 09:51 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Gunderak View Post
PHP Code:
function onSelectRow() {
  for (
temp.plfindNearestPlayers(mousexmousey)) {
    
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.
__________________
Reply With Quote