Lares
Member
- Joined
- Feb 8, 2010
- Messages
- 315
- Reaction score
- 7
Hey i have stupid problem with very easy script:
And Error:
Its 10 line:
Lua:
function onUse(cid, item, frompos, item2, topos)
local efekt = {30, 35, 40, 45, 50} --k/p/s/d/all
local vocation = getPlayerVocation(cid)
if item.itemid == 11449 then
if vocation == 4 then
if getPlayerLevel(cid) >= 150 then
if getPlayerSkillLevel(cid, 7) >= 5 then
if getPlayerSkillLevel(cid, 5) >= 80 then
if getPlayerStorageValue(uid, 5050) == 1 then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, "Done.")
else
doPlayerSetStorageValue(uid, 5050, 1)
doSendMagicEffect(getPlayerPosition(cid), efekt[1])
doRemoveItem(item.uid)
end
end
end
end
end
return TRUE
end
And Error:
Code:
[10/08/2010 21:21:03] [Error - Action Interface]
[10/08/2010 21:21:03] data/actions/scripts/quest/questDT.lua:onUse
[10/08/2010 21:21:03] Description:
[10/08/2010 21:21:03] data/actions/scripts/quest/questDT.lua:10: attempt to compare number with boolean
[10/08/2010 21:21:03] stack traceback:
[10/08/2010 21:21:03] data/actions/scripts/quest/questDT.lua:10: in function <data/actions/scripts/quest/questDT.lua:1>
Its 10 line:
Lua:
if getPlayerSkillLevel(cid, 7) >= 5 then
Last edited: