here script:
what wrong??
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
playerTown = getPlayerTown(cid)
if doPlayerSetTown(cid, 3)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"Your new residence is Darashia!")
elseif playerTown == 3 then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"You residence is Darashia.")
end
return false
end
what wrong??