• 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 Can't find the missing Symbol

Bladefist

New Member
Joined
Oct 26, 2010
Messages
65
Reaction score
0
Location
Carlin
Code:
function eventual(cid, getThingPos(item.uid), wallpos)
        doCreateItem(1116,1,wallpos[1])
        doCreateItem(1116,1,wallpos[2])
        doTransformItem(getThingPos(item.uid),item.itemid-1)        
end
 
function onUse(cid, item, frompos, item2, topos)
        wallpos = {
        {x=1187, y=1235, z=7, stackpos=1},
        {x=1187, y=1236, z=7, stackpos=1}
}
        getwalls = {
        getThingfromPos(wall1),
        getThingfromPos(wall2)
}
 
        if item.uid == 9017 and item.itemid == 1945 then
                doRemoveItem(getwalls[1].uid,1)
                doRemoveItem(getwalls[2].uid,1)
                doTransformItem(item.uid,item.itemid+1)
                doCreatureSay(cid, "You just opened a secret passage!", TALKTYPE_ORANGE_1)
                addEvent(eventual, 40000, cid, getThingPos(item.uid), wallpos)
        elseif item.uid == 9017 and item.itemid == 1946 then
                doPlayerSendCancel(cid,"You can't use this yet.")
        else
                doPlayerSendCancel(cid,"Sorry, not possible.")
        end
        return 1
end

Is missing `)" expected near `("

And I don't find it, can someone fix this script and re-paste it?

Thanks,
 
I think your missing a ")" around one of those (cid, I think one of those lines needs both Maybe not the error dosen't tell you what line its on?
 
Back
Top