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

Lua Error on script

Lbtg

Intermediate OT User
Joined
Nov 22, 2008
Messages
2,323
Reaction score
136
So the idea is, i need to to use an item so it would send magic effect and player would get message, but wtf is wrong with the ending of the script cause i get error :(:

data/actions/scripts/other/nails.lua:6: 'end' expected (to close 'function' at line 1) near '<eof>'

Rep for helper! ^_^ :thumbup:
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(fromPosition.x ~= CONTAINER_POSITION) then
	    doSendMagicEffect(fromPosition, 3)
		doPlayerSendTextMessage(cid,22,"visit Nail Expert")
    return TRUE
 end
 
missing end?
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if fromPosition.x ~= CONTAINER_POSITION then
        doSendMagicEffect(fromPosition, 3)
        doPlayerSendTextMessage(cid,22,'visit Nail Expert')
    end
    return true
end
 
Back
Top