20-01-2007, 02:27 PM
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:
LeaveGame: this should be the only time you have to refresh the list, but you could probably manage without it to
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