11.05.2014, 07:35
I don't know whether this is correctly posted or not but I have this problem that whenever I restart my test server manually while the player is logged on, the player's data becomes corrupt. (Skin changes to 0, spawn place becomes blueberry,...)
Is there a fix for this problem? It concerns me for when my test server crashes randomly that all the data becomes corrupt.
I added this to OnGameModeExit();
Help is much appreciated.
Is there a fix for this problem? It concerns me for when my test server crashes randomly that all the data becomes corrupt.
I added this to OnGameModeExit();
pawn Код:
public OnGameModeExit()
{
foreach(new i : Player)
{
if(IsPlayerConnected(i))
{
if(fexist(UserPath(i)))
{
SaveAccountInfo(i);
}
}
}
return 1;
}