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

Help with 2 problem

elking

Swev-v2.sytes.net Comming Soon !<>!
Joined
Aug 20, 2012
Messages
445
Reaction score
28
Location
Egypt
Hello Otland.

I need help with this problems.

First one :When I put items on this floor I didn't find anything as like space

Code:
 <item id="10764" article="a" name="Brown Floor" />
  <attribute key="type" value="floor" />

http://speedy*****malware.localhost/CWgxj/floor.png

Second : I need fix this bug

Code:
[06/02/2014 13:28:30] [Error - GlobalEvent Interface]
[06/02/2014 13:28:30] data/globalevents/scripts/record.lua:onRecord
[06/02/2014 13:28:30] Description:
[06/02/2014 13:28:30] data/globalevents/scripts/record.lua:2: attempt to call field 'query' (a nil value)
[06/02/2014 13:28:30] stack traceback:
[06/02/2014 13:28:30]    data/globalevents/scripts/record.lua:2: in function <data/globalevents/scripts/record.lua:1>

Record.lua

Code:
function onRecord(current, old, cid)
    db.query("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

globalevents.xml

Code:
<globalevent name="playersrecord" type="record" event="script" value="record.lua"/>

And Thanks ;):cool:

BUMP

BUMP
 
Last edited by a moderator:
Code:
db.executeQuery
Next time if you have an error like that, you can just paste it in search, then you will find threads about the same problem and the solution for it.
iZ288v.png

2slMe4.png

http://otland.net/threads/error-creaturescript-interface.200140/#post-1925577
http://otland.net/threads/death-error-cant-die-im-immortal.200489/#post-1928708
http://otland.net/threads/error-war-script.171593/#post-1661997
http://otland.net/threads/star-lua.111222/#post-1105873

Can you explain your other problem more?
 
Back
Top