Glidarn
Member
My console shows me this:
This is my start.lua
I've tried to changed the code but as you can see i failed big time
// Glidarn
[12/12/2010 14:04:14] [Error - GlobalEvent Interface]
[12/12/2010 14:04:14] data/globalevents/scripts/start.luanStartup
[12/12/2010 14:04:14] Description:
[12/12/2010 14:04:14] data/globalevents/scripts/start.lua:2: attempt to call field 'query' (a nil value)
[12/12/2010 14:04:14] stack traceback:
[12/12/2010 14:04:14] data/globalevents/scripts/start.lua:2: in function <data/globalevents/scripts/start.lua:1>
This is my start.lua
LUA:
function onStartup()
db.query("UPDATE `players` SET `online` = 0 WHERE `world_id` = 0;")
return true
end
I've tried to changed the code but as you can see i failed big time
// Glidarn