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.