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

Error - MoveEvents Interface

cremes

New Member
Joined
Oct 12, 2012
Messages
69
Reaction score
2
Some1 know whats wrong ?

[21/10/2012 19:57:34] [Error - MoveEvents Interface]
[21/10/2012 19:57:34] data/movements/scripts/vengothexp.lua:eek:nStepIn
[21/10/2012 19:57:34] Description:
[21/10/2012 19:57:34] attempt to index a nil value
[21/10/2012 19:57:34] stack traceback:
[21/10/2012 19:57:34] [C]: in function 'doTeleportThing'
[21/10/2012 19:57:34] data/movements/scripts/vengothexp.lua:4: in function <data/movements/scripts/vengothexp.lua:1>

function onStepIn(cid, item, position, fromPosition)

if (getPlayerStorageValue(cid,162) < 1) then
doTeleportThing(cid, fromposition)
doSendMagicEffect(fromposition,10)
doPlayerSendTextMessage(cid,22,"Nie wykonales jeszcze questu na Vengoth.")
else
end
return true
end
 
fromposition is written wrong.

change
Lua:
doTeleportThing(cid, fromposition)
doSendMagicEffect(fromposition,10)
into
Lua:
doTeleportThing(cid, fromPosition)
doSendMagicEffect(fromPosition,10)
you wrote the P small ;)
 
Back
Top