Marcinek123
Badboy
I have this::thumbup:
:blink:
What is wrong?
I have this error in console :
Warning: [Event::loadScript] Can not load script. data/actions/scripts/other/x.lua
[24/10/2008 21:12:20] data/actions/scripts/other/x.lua:6: 'then' expected near 'doSetItemText'
Please fix it... :huh:
Code:
function onUse(cid, item, fromPos, itemEx, toPos)
text1 = ""
text2 = ""
if playerStorage(cid, getPlayerStorage) == 12345
doSetItemText(item.itemid, text1)
doShowTextDialog(item.itemid, 0,0)
end
elseif
doSetItemText(item.itemid, text2)
doPlayerAddExp(cid, 5000)
setPlayerStorage(cid, 12345)
doShowTextDialog(item.itemid, 0,0)
end
return 1
end
What is wrong?
I have this error in console :
Warning: [Event::loadScript] Can not load script. data/actions/scripts/other/x.lua
[24/10/2008 21:12:20] data/actions/scripts/other/x.lua:6: 'then' expected near 'doSetItemText'
Please fix it... :huh: