Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
/save
#7
Mattyw Wrote:THIRTY SECONDS?!

Code:
' Checks to save players every 10 minutes - Can be tweaked
        If Tick > LastUpdateSavePlayers Then
            UpdateSavePlayers
            LastUpdateSavePlayers = GetTickCount + 60000
        End If

Private Sub UpdateSavePlayers()
Dim i As Long

Code:
Private Sub UpdateSavePlayers()
Dim i As Long

    If TotalOnlinePlayers > 0 Then
        Call TextAdd(frmServer.txtText, "Saving all online players...", True)
        Call GlobalMsg("Saving all online players...", Pink)
        For i = 1 To MAX_PLAYERS
            If IsPlaying(i) Then
                Call SavePlayer(i)
            End If
            DoEvents
        Next i
    End If
End Sub

modServerLoop.bas

I removed the GlobalMsg. =-p

I swear, I see that message "Saving all chars" like every thirty seconds.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)