Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SavePlayer Faster
#1
Originally posted by Dragoons Master

Very simple tutorial. I was testing my server on a P2(455Mhz) and it was veery lagued, but thats not the point. When I tried to create an account from my website account creation, it taked sooo long creating it, so I maded a veeery simple modification, and now it creates the account praticly instantly.
It just saves the player you are using(PlayerNum), so do this:
ONLY SERVER SIDE

modDatabase:
Sub SavePlayer:
Replace:

Code:
For I = 1 To MAX_CHARS

with:

Code:
For I = 1 To MAX_CHARS
        If Player(Index).CharNum = I Then
and replace:

Code:
Next I
with:

Code:
End If
    Next I

This will make the server saves only the char you had played, and on the account creation, it will save only the account information(3 or 4 lines) xD
Simple and usefull.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)