Hi!, I am making a transporter EGP, and I use findByClass("player") to search for players and display them on the screen, but when I press a button on the EGP, it searches for a trasporter pad, with a specific owner, this especific owner is the one we selected on the screen, but I can't use findResult(1) in the other search, so, Is there a way that I can use a variable that fixes the Entity name on it, without using findResult(NUM)? Because it is checking for the 1st pad it finds owner, not the selected one!
When it prints, it shows something like that:
[Player, [1],[NAME]][Player, [2]...][Player, [3]...][Player, [5]...][Player, [7]...][Player, [8]...] as you can see it jumps some numbers.
As far as I know, the player index jumps some numbers because players are leaving/joining all the time, which manipulates the index. The important thing is, does it show all players or are there some names missing?
(28-02-2015, 02:46 PM)Blackhawk Wrote: As far as I know, the player index jumps some numbers because players are leaving/joining all the time, which manipulates the index. The important thing is, does it show all players or are there some names missing?
No missing players, but I think the numbers should be allways 1,2,3,4,5... because it is bugging with my E2, so then you are selecting the wrong player.