19.05.2020, 06:48
Save player's stats only if they are logged in.
Use a variable to check weather player is logged or not!
if someone quit without login.. this situation will occur (as you are directly saving stats without checking weather the player is logged in)
and Also use a repeating timer to save all data!
Use a variable to check weather player is logged or not!
if someone quit without login.. this situation will occur (as you are directly saving stats without checking weather the player is logged in)
and Also use a repeating timer to save all data!