legolas23
New Member
- Joined
- Jan 8, 2009
- Messages
- 537
- Reaction score
- 3
Mógłby ktoś zerknąć na ten skrypt i błąd z konsoli i powiedzieć mi co jest nie tak? ;p
Blad
Code:
function onUse(cid, item, frompos, item2, topos)
local ruina = 9299
if (itemEx.uid == 23241) then
if 70 >= math.random(1,100) then
doPlayerSendTextMessage(cid,22,"Udalo ci sie czesciowo rozbic sciane")
doTransformItemEx(uid,ruina)
doSendMagicEffect(getPlayerPosition,4)
else
doPlayerSendTextMessage(cid,22,"Nieudalo ci sie rozbic sciany")
end
end
return TRUE
end
Blad
Code:
Lua Script Error: [Action Interface]
data/actions/scripts/mlotek1.lua:onUse
data/actions/scripts/mlotek1.lua:3: attempt to index global 'itemEx' (a nil valu
e)
stack traceback:
data/actions/scripts/mlotek1.lua:3: in function <data/actions/scripts/ml
otek1.lua:1>
Last edited: