1268995
Member
- Joined
- Sep 9, 2010
- Messages
- 422
- Reaction score
- 13
Hi!
I ctrl c + ctrl V my server from windows to linux... compiled, ok.
When i open my server on linux, appear this error:
I ctrl c + ctrl V my server from windows to linux... compiled, ok.
When i open my server on linux, appear this error:
Code:
[Error - GlobalEvent Interface]
domodlib("config_run_event")
domodlib("lib_run_event")
local daysOpen = {}
for k, v in pairs(configRunEvent.days) do
table.insert(daysOpen, k)
end
function onThink(interval)
if isInArray(daysOpen, os.date("%A")) then
if isInArray(configRunEvent.days[os.date("%A")], os.date("%X", os.time())) then
if getStorage(configRunEvent.storages.joining) ~= 1 then
doSetStorage(configRunEvent.storages.joining, 1)
addEvent(doStartEventRun, configRunEvent.delayTime * 60 * 1000)
doStartCountingRunEvent(0)
for _, pid in ipairs(getPlayersOnline()) do
if getCreatureStorage(pid, configRunEvent.storages.player) > 0 then
doCreatureSetStorage(pid, configRunEvent.storages.player, -1)
doPlayerSetGroupId(pid, math.max(1, getCreatureStorage(pid, configRunEvent.storages.group)))
doChangeSpeed(pid, getCreatureBaseSpeed(pid) - configRunEvent.players.speed)
doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid)), true)
end
end
end
end
end
return true
end
:onThink
Description:
[string "LuaInterface::loadBuffer"]:10: attempt to call global 'isInArray' (a nil value)
stack traceback:
[string "LuaInterface::loadBuffer"]:10: in function <[string "LuaInterface::loadBuffer"]:9>
[Error - GlobalEvents::think] Couldn't execute event: Run_Event_Days
[Error - GlobalEvent Interface]
domodlib("config_run_event")
domodlib("lib_run_event")
local daysOpen = {}
for k, v in pairs(configRunEvent.days) do
table.insert(daysOpen, k)
end
function onThink(interval)
if isInArray(daysOpen, os.date("%A")) then
if isInArray(configRunEvent.days[os.date("%A")], os.date("%X", os.time())) then
if getStorage(configRunEvent.storages.joining) ~= 1 then
doSetStorage(configRunEvent.storages.joining, 1)
addEvent(doStartEventRun, configRunEvent.delayTime * 60 * 1000)
doStartCountingRunEvent(0)
for _, pid in ipairs(getPlayersOnline()) do
if getCreatureStorage(pid, configRunEvent.storages.player) > 0 then
doCreatureSetStorage(pid, configRunEvent.storages.player, -1)
doPlayerSetGroupId(pid, math.max(1, getCreatureStorage(pid, configRunEvent.storages.group)))
doChangeSpeed(pid, getCreatureBaseSpeed(pid) - configRunEvent.players.speed)
doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid)), true)
end
end
end
end
end
return true
end
:onThink
Description:
[string "LuaInterface::loadBuffer"]:10: attempt to call global 'isInArray' (a nil value)
stack traceback:
[string "LuaInterface::loadBuffer"]:10: in function <[string "LuaInterface::loadBuffer"]:9>
[Error - GlobalEvents::think] Couldn't execute event: Run_Event_Days