SA-MP Forums Archive
Question about OnGameModeExit - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question about OnGameModeExit (/showthread.php?tid=323718)



Question about OnGameModeExit - cs_waller - 06.03.2012

Hello guys,
I have one question.I have houses/biz and another things in my server and I maked this things in OnGameModeExit to be saved.But when I turn my server off it write that requires little time to save all things in OnGameModeExit.My question is how to make the server how to do to be saved instantly without delaying surgery?

Thanks in advanced and sorry for my bad english


AW: Question about OnGameModeExit - Campbell- - 06.03.2012

You may create a function to save everything before you finally shut the server down. However, it must be a lot of stuff to save that it takes 'some' time. Are you sure that you aren't able to improve your script?


Re: Question about OnGameModeExit - cs_waller - 06.03.2012

This is what I have in OnGameModeExit
Can you explain me how to make to be fast restart not slow?

pawn Код:
public OnGameModeExit()
{
    SaveAccounts();
    SaveHouses();
    SaveBizzes();
    SaveMissions();
    SaveFuels();
 return 1;
}



Re: Question about OnGameModeExit - MP2 - 06.03.2012

You can't change the GMX delay.


Re: Question about OnGameModeExit - cs_waller - 06.03.2012

But in Raven's Roleplay is same work.It's have more things to saving and when you off your server the mod immediately stops.