Error on console:
save.lua
Any idea?
Code:
[Error - LuaInterface::loadFile] data/globalevents/scripts/save.lua:13: unfinished string near '")'
save.lua
Code:
local config = {
broadcast = "yes"
}
config.broadcast = getBooleanFromString(config.broadcast)
local function executeSave(seconds)
if(seconds == 0) then
doSaveServer()
return true
end
if(seconds == 120 or seconds == 30) then
doBroadcastMessage("Server will be save in " .. seconds .. ")
end
seconds = seconds - 30
if(seconds >= 0) then
addEvent(executeSave, 30 * 1000, seconds)
end
end
function onThink(interval, lastExecution, thinkInterval)
if(not config.broadcast) then
doSaveServer()
return true
end
executeSave(120)
return true
end
Any idea?