28.05.2011, 21:23
That basically loops through 500players 18 times. Whether it's healthy/unhealthy as to CPU&RAM usage depends on what you're checking.
Let's say, you're getting the name of a player, and adding [PK] infront of their name.
You're checking "MAX_PLAYERS" which is 500. That means: You're checking 500 player names, and after that: you're adding 4 characters [(1) P(2) K(3) ](4). You're doing that 18 times.
Let's say, you're getting the name of a player, and adding [PK] infront of their name.
You're checking "MAX_PLAYERS" which is 500. That means: You're checking 500 player names, and after that: you're adding 4 characters [(1) P(2) K(3) ](4). You're doing that 18 times.