02.04.2013, 18:10
hey guys So I have a server but my problem is when I play for like few minutes and my score is for example its 100. and when I close the server (CMD based) and open it, my scores are gone. how can I save that ?
public OnGameModeExit() { for(new i = 0; i < MAX_PLAYERS; i ++) { SavePlayer(i); // or whatever your save function is called } }
- On each restart function in your script: > Save all players > Set logged for all players to 0 - OnPlayerDisconnect > Only save a players stats if logged == 1