Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Server Players List
#11
Zel, Elmrok's isn't lazy, he is showing whos on a map, not showing everyone online. Maybe that suites his purpose, and if you just didn't see that, read the whole code first.

JoinGame:
Code:
frmServer.lstOnline.AddItem GetPlayerName(index)

LeaveGame: this should be the only time you have to refresh the list, but you could probably manage without it to
Code:
frmServer.lstOnline.Clear
for i = 1 to MAX_PLAYERS
     if IsPlaying(i) then
            frmServer.lstOnline.AddItem GetPlayerName(i)
     end if
next i
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)