Thread: mouse -> ID
View Single Post
  #3  
Old 02-06-2004, 02:39 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Re: mouse -> ID

Quote:
Originally posted by Jimmii
you pass a players ID into with(allplayers(i)) do you not?
Nope. Allplayers takes a global index that is different from both the local index and the player ID.
Player IDs are not neccessarily sequential, because if a player with a lower ID logs off, the higher ones to not change their ID. Thus, you could not do for (i = 0; i < allplayerscount; i ++) ...
If you want to find a certain player, you can use testplayer to get his index, then use that index with #a() to get his account name, and use with (getplayer()).
Reply With Quote