Hello someone can Help me? I Download a DataPack and I got this error:
And this is the start.lua:
What commands/tables should I add to my mysql? =S Thx!
Help plx Rep++
Code:
[13:18:59.473] [Error - GlobalEvent Interface]
[13:18:59.473] data/globalevents/scripts/start.lua:onStartup
[13:18:59.473] Description:
[13:18:59.473] data/globalevents/scripts/start.lua:2: attempt to call field 'executeQuery' (a nil value)
[13:18:59.473] stack traceback:
[13:18:59.473] data/globalevents/scripts/start.lua:2: in function <data/globalevents/scripts/start.lua:1>
And this is the start.lua:
PHP:
function onStartup()
db.executeQuery("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. ";")
return true
end
What commands/tables should I add to my mysql? =S Thx!
Help plx Rep++