Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why are we using/wasting so many loops?
#1
I was just thinking about it... and everytime something of necessity happens... that affects, everyone that's playing... we use a

for i = 1 to max_players (or highindex, if you used the tutorial for it)

and then the next step... is to do, if IsPlaying(i)


WHY!?!........ shouldn't we just simplify the entire process and save loops by doing for i = 1 to totalonlineplayers? TotalOnlinePlayers stores the current number ACTUALLY PLAYING. So instead of looping 50 + times, when chances are it only needs to do it 13 times or so... why don't we just use TotalOnlinePlayers?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)