SA-MP Forums Archive
Backup Gamemode - 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: Backup Gamemode (/showthread.php?tid=405620)



Backup Gamemode - Zh0ro - 07.01.2013

Hey,

Today i scripting my Gamemode and in israel tody we have power failure sometime...
my gamemode not saved and all my work is remove!
i want keep scripting my gamemode and im fear it will come back again.
Who caught the problem and can find a solution for this please help!


Re: Backup Gamemode - thefatshizms - 07.01.2013

Save every 5 minutes.


Re: Backup Gamemode - Zh0ro - 07.01.2013

I think doing that but i dont know if i remember!


Re: Backup Gamemode - Designer Vibe02 - 07.01.2013

Put this on OnGameModeInit

pawn Код:
SetTimer("FunctionToSaveFiles",300000,1);
and replace "FunctionToSaveFiles" to your function to save all data in your server


Re: Backup Gamemode - thefatshizms - 07.01.2013

I think he means his actual gamemode code. Therefore this wouldn't work


Re: Backup Gamemode - Konstantinos - 07.01.2013

Quote:
Originally Posted by Designer Vibe02
Посмотреть сообщение
Put this on OnGameModeInit

pawn Код:
SetTimer("FunctionToSaveFiles",300000,1);
and replace "FunctionToSaveFiles" to your function to save all data in your server
This is not what he wants. I used to have some problems with blackouts at summer and I've lost a lot of work in just a second. From that day after, I always add something to my gamemode and I compile it to be sure! This is the best and only solution (I think).