19.08.2012, 22:02
as title says i want to execute the DB save function ongamemodeexit so if the server is closed no player data loses
i tried this but it does not work
i tried this but it does not work
pawn Код:
public OnGameModeExit()
{
foreach (new i : Player)
{
if(pInfo[i][prSTEP] > 0)
{
getPlayerStats(i);
save_cDATA(i);
}
}
UnINIT_DB();
return 1;
}