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

Solved Ctf mod error in globalevents

Deus Meus

New Member
Joined
May 18, 2014
Messages
120
Reaction score
1
hi guys.
hello friend I error in a ctf is a mod
in the console I get this
and leave me many times the error that closes
https://gist.github.com/fenrearbt/da771397571df849d061

[07/12/2014 18:30:57] [Error - GlobalEvent Interface]
[07/12/2014 18:30:57] In a timer event called from:
[07/12/2014 18:30:57] buffer:onThink
[07/12/2014 18:30:57] Description:
[07/12/2014 18:30:57] (luaGetThingFromPos) Tile not found
 
Change
Code:
for i = 1, 200 do
     position = {x = v, y = k, z = 7, stackpos = i}
     pid = getThingfromPos(position).uid
     if(pid ~= nil and isPlayer(pid)) then
         table.insert(players, pid)
     end
end
To
Code:
pid = getTopCreature({x = v, y = k, z = 7}).uid
if isPlayer(pid) then
     table.insert(players, pid)
end
 
Back
Top