User Saving Data
#1

Good morning!
I have a little question about user saving data.How is more efficient?
Updating database every 30 miuntes or updating when player is using command(/givemoney,updates money) ?
Reply
#2

onplayerdisconnect.
Reply
#3

I'd say updating it each 30 minutes. You could use OnPlayerDisconnect, though.. Way better. Imagine a busy server where alot of people are buying weapons each time, that'd be so inefficient. And saving each 30 minutes is not preferred either. What happens if a player gains money and then leaves before the 30 minute save timer? He'll lose status and then come complaining at your forum.
Reply
#4

What happen if the server crash ?
OnPlayerDisconnect isn't called...
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)