View Single Post
  #1  
Old 02-20-2012, 12:07 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Selected Players in Internal V5 Playerlist

I've been working on a certain custom playerlist right click entry, which works absolutely fine in V6, however when testing the internal V5 playerlist it appears the global variable selectedlistplayers doesn't work.

Is there something I'm missing?
If not, it might be good to fix this considering the internal V5 playerlist is scripted rather than built in to the client.
In the mean time, to retrieve a selected player's account name I'm resorting to the rather hackish method of:

PHP Code:
if(graalversion == 5.12){
  
temp.pl findplayer(PlayerList_List.rows[PlayerList_List.getselectedrow()].hint.substring(9, -1));
}
else{
  
temp.pl selectedlistplayers[0];

I'm aware I could just use PlayerList_List.getselectedtext() and loop through all players to compare their nick, but that seems excessive.
Reply With Quote