Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Very Simple Optimize Max Looping
#2
Well, it should be like this:

Code:
For i = 1 to MAX_PLAYERS
If Trim(Player(i).Name) = vbNullString then
  ' Next i kinda thing
Else
  HIGH_PLAYER_INDEX = i
End if
Next i
Im pretty sure that would work to the easiest part, but there are several things like this around. And I dont like this way, the MAX_ values aint that high anyway.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)