• 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!

Global event error!

Zarabustor

Human Being
Joined
Sep 10, 2009
Messages
186
Reaction score
0
Location
Cancun, Mexico
Code:
[01/04/2010 21:54:16] [Error - GlobalEvent Interface] 
[01/04/2010 21:54:16] data/globalevents/scripts/record.lua:onRecord
[01/04/2010 21:54:16] Description: 
[01/04/2010 21:54:16] data/globalevents/scripts/record.lua:2: attempt to concatenate a nil value
[01/04/2010 21:54:16] stack traceback:
[01/04/2010 21:54:16] 	data/globalevents/scripts/record.lua:2: in function <data/globalevents/scripts/record.lua:1>

Always when i run the server appears that error :S help me
 
try to boot it in record.lua:
Code:
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
 
Back
Top