28.01.2017, 13:51
Hey everyone i'm having an issue where if i restart the server,the connected players statistics or lost (if they quit it saves),but if the server crashes/restarts it all starts back from 0.however i save some scripts saving the stats OnGameModeExit i tried it,
Same problem...
Should i do this method instead?
from Konstantinos
If none of the above best fits the situation what's the best method?
Код:
foreach(new i: Player) { SavepStats(i); }
Should i do this method instead?
Код:
for (new i = 0, j = GetPlayerPoolSize(); i <= j; i++) { if (IsPlayerConnected(i)) { OnPlayerDisconnect(i, 1); } }
If none of the above best fits the situation what's the best method?