View Single Post
  #1  
Old 09-09-2011, 04:40 PM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Problem With Right Click Gui

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.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();
  }

__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion

Last edited by Gunderak; 09-09-2011 at 04:56 PM..
Reply With Quote