10.07.2010, 15:17
(
Последний раз редактировалось Mauzen; 10.07.2010 в 15:31.
)
I dont really know this FS, but in general, a Servercrash is unforseeable, so there cant be a callback for this.
So, you could add an timer, that saves the data for example every 60 or 120 seconds, that should be often enough.
I just looked over the script. I think, adding this should be enough:
So, you could add an timer, that saves the data for example every 60 or 120 seconds, that should be often enough.
I just looked over the script. I think, adding this should be enough:
pawn Код:
in global variables:
new savetimer[MAX_PLAYERS];
in OnPlayerConnect:
savetimer[playerid] = SetTimerEx("refresh_player_data", 120000 (interval in ms), 1, "ii", playerid, 1);
in onPlayerDisconnect:
KillTimer(savetimer[playerid]);