13-01-2007, 08:54 PM
Fine..
In Joingame
(Note, you can just do + 1 too, but I think that's just a bit too buggy, plus, a recount every now and then isn't going to hurt anyone
somewhere:
In leavegame
And replace most instances of MAX_PLAYERS with PlayersOnline.
Not tested.
In Joingame
(Note, you can just do + 1 too, but I think that's just a bit too buggy, plus, a recount every now and then isn't going to hurt anyone
Code:
For i = 1 To MAX_PLAYERS
If IsPlaying(i) Then
PlayersOnline = PlayersOnline + 1
End If
Next i
Code:
Public PlayersOnline As Byte
In leavegame
Code:
PlayersOnline = PlayersOnline - 1
And replace most instances of MAX_PLAYERS with PlayersOnline.
Not tested.