Colandus wrote a script to save the data each 10 minutes and it worked fine but on rev 896 [tag 0,2] it doesn't work.
PHP:
saveDelay = 10 * 60 * 1000 -- 10 minutes for each save.
storageValue = 2342
if (getGlobalStorageValue(storageValue) == -1) then
function save(saveDelay)
saveData()
debugPrint(">>>>PLAYERS SAVED<<<<")
addEvent(save, saveDelay, saveDelay)
end
addEvent(save, saveDelay, saveDelay)
setGlobalStorageValue(storageValue, 1)
end