• 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 TFS 0.4 ERRO Call stack overflow.

boxxer321

Active Member
Joined
Nov 5, 2011
Messages
112
Reaction score
39
function onStepIn(cid, item, position, fromPosition)
local storage = 89301 --storage gravada
local delay = 2--tempo configuravel do delay
if (getPlayerStorageValue(cid, storage) <= os.time()) then
setPlayerStorageValue(cid, storage, os.time()+delay)
return true
else
doTeleportThing(cid, fromPosition, false)
doPlayerSendCancel(cid, "Espere um momento para usar esta escada.")
end
return true
end

[Error - MoveEvent::executeStep] Call stack overflow.



Help please
 
Lua:
function onStepIn(cid, item, position, fromPosition)
local storage = 89301 --storage gravada
local delay = 2--tempo configuravel do delay
if (getPlayerStorageValue(cid, storage) < os.time()) then
doCreatureSetStorage(cid, storage, os.time() + delay)
return true
else
doTeleportThing(cid, fromPosition, false)
doPlayerSendCancel(cid, "Espere um momento para usar esta escada.")
end
return true
end
 
Versión of serv? What are you doing with that? Tell us more for we can help you....
server version 8.6. is a system that makes it impossible for the player to use the ladder again for a configurable time
Lua:
function onStepIn(cid, item, position, fromPosition)
local storage = 89301 --storage gravada
local delay = 2--tempo configuravel do delay
if (getPlayerStorageValue(cid, storage) < os.time()) then
doCreatureSetStorage(cid, storage, os.time() + delay)
return true
else
doTeleportThing(cid, fromPosition, false)
doPlayerSendCancel(cid, "Espere um momento para usar esta escada.")
end
return true
end
I'll try!! Can u tell me what do you change and why? I like to learn
 
server version 8.6. is a system that makes it impossible for the player to use the ladder again for a configurable time

I'll try!! Can u tell me what do you change and why? I like to learn
u did <= its must be <
when use > u can use >=
 

Similar threads

Back
Top