SA-MP Forums Archive
Problem with autosave - 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: Problem with autosave (/showthread.php?tid=624902)



Problem with autosave - compton1995 - 24.12.2016

Hello guys sorry for my english..My problem is: I have auto save system everything is saved on one hour but turfs, no. I don't know how to do this .. When auto save is ready i restart the server i go to my gang territory and when i use /checkturf is show me Grove but on the radar is black color like a civilian...


Re: Problem with autosave - Yaa - 24.12.2016

no code, No help


Re: Problem with autosave - compton1995 - 24.12.2016

Quote:

if(PlayerInfo[i][pSave] > 0)
{
if(PlayerInfo[i][pSave] > 0)
{
PlayerInfo[i][pSave]--;
}
if(PlayerInfo[i][pSave] <= 0)
{
new playerid;
PlayerInfo[i][pSave] = 60*60;
SendClientMessageToAll(COLOR_RED, "SERVER: - AUTO SAVE: Цялата статистика за сървъра в момента се ЗАПАМЕТЯВА АВТОМАТИЧНО!");
SendClientMessageToAll(COLOR_RED, "SERVER: В момента всичко за акаунтите/къщите/бизнесите се запаметява!");
SendClientMessageToAll(COLOR_RED, "SERVER: Докато всичко се запаметява сървъра ще изглежда че все едно не работи!");
SendClientMessageToAll(COLOR_RED, "SERVER: Няма да можете да правите нищо в сървъра, но това е само докато нещата се запаметят!");
SendClientMessageToAll(COLOR_RED, "SERVER: Моля,изчакайте докато всичко се запамети!");
SaveAccounts();
for(new h; h<MAX_HOUSES; h++)
{
SavePlayerHouse(h);
}
SendClientMessageToAll(COLOR_RED, "SERVER: Всичко се запамети успешно, благодарим за вашето търпение!");
}

This is the code ?