• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Record.lua

Nevermore

Banned User
Joined
Sep 25, 2011
Messages
415
Reaction score
26
Location
United States
I get this error when someone logs into the server.


LUA:
function onRecord(current, old, cid)
	db.executeQuery("INSERT INTO `server_record` (`record`, `world_id`, `timestamp`) VALUES (" .. current .. ", " .. getConfigValue('worldId') .. ", " .. os.time() .. ");")
	addEvent(doBroadcastMessage, 150, "New record: " .. current .. " players are logged in.", MESSAGE_STATUS_DEFAULT)
end



Code:
[Error - GlobalEvent Interface]
data/globalevents/scripts/record.lua:onRecord
Description:
data/globalevents/scripts/record.lua:2: attempt to call field 'executeQuery' (a
nil value)
stack traceback:
        data/globalevents/scripts/record.lua:2: in function <data/globalevents/s
cripts/record.lua:1>
 
LUA:
>> Checking world type... PvP>> Initializing game state modules and registering services...
mysql_real_query(): SELECT `id`, `ownerid`, `creationdata`, `checkdata` FROM `gu
ilds` WHERE `world_id` = 0; - MYSQL ERROR: Unknown column 'checkdata' in 'field
list' (1054)
 
Back
Top