lorduke
New Member
- Joined
- May 22, 2009
- Messages
- 32
- Reaction score
- 1
I have this error:
here the script:
Code:
[Error - LuaScriptInterface::loadFile] data/talkactions/scripts/soft.lua:13: 'en
d' expected (to close 'function' at line 1) near 'else'
[Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/soft.
lua)
data/talkactions/scripts/soft.lua:13: 'end' expected (to close 'function' at lin
e 1) near 'else'
here the script:
LUA:
function onSay(cid, words, param, channel)
if getPlayerItemCount(cid, 10021) >= 1 then
if doPlayerRemoveItem(cid, 5944,10) then
doPlayerRemoveItem(cid, 10021, 1)
doPlayerAddItem(cid, 6132, 1, FALSE)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You recharged your soft boots for 10 soul orbs.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need 10 soul orbs to recharge your soft boots.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need a worn soft boots to recharge it.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param!.")
end
return TRUE
end