')' expected (to close '(' at line 14) near 'doSummonCreature'
function onUse(cid, item, fromPosition, itemEx, toPosition)
local monster = "demon"
local pos1 = {x=32104, y=33267, z=12}
local pos2 = {x=32107, y=33272, z=12}
local pos3 = {x=32102, y=33275, z=12}
local pos4 = {x=32108, y=33276, z=12}
local pos5 = {x=32104, y=33286, z=12}
local pos6 = {x=32106, y=33286, z=12}
local id = 1419
if item.itemid == id and item.uid == 50000 then
if isPlayer(cid) == TRUE then
if queststatus == (getPlayerStorageValue(cid, 55000)
doSummonCreature(monster, pos1)
doSummonCreature(monster, pos2)
doSummonCreature(monster, pos3)
doSummonCreature(monster, pos4)
doSummonCreature(monster, pos5)
doSummonCreature(monster, pos6)
setPlayerStorageValue(cid, 55000) -1
else
if getPlayerStorageValue(cid, 55000) == -1 then
doCreatureSay(cid, "You cannot open it more.", TALKTYPE_ORANGE_1)
end
return 1
end
end
If someone knew how to fix this i would be very thankfull.
thanks in advance
function onUse(cid, item, fromPosition, itemEx, toPosition)
local monster = "demon"
local pos1 = {x=32104, y=33267, z=12}
local pos2 = {x=32107, y=33272, z=12}
local pos3 = {x=32102, y=33275, z=12}
local pos4 = {x=32108, y=33276, z=12}
local pos5 = {x=32104, y=33286, z=12}
local pos6 = {x=32106, y=33286, z=12}
local id = 1419
if item.itemid == id and item.uid == 50000 then
if isPlayer(cid) == TRUE then
if queststatus == (getPlayerStorageValue(cid, 55000)
doSummonCreature(monster, pos1)
doSummonCreature(monster, pos2)
doSummonCreature(monster, pos3)
doSummonCreature(monster, pos4)
doSummonCreature(monster, pos5)
doSummonCreature(monster, pos6)
setPlayerStorageValue(cid, 55000) -1
else
if getPlayerStorageValue(cid, 55000) == -1 then
doCreatureSay(cid, "You cannot open it more.", TALKTYPE_ORANGE_1)
end
return 1
end
end
If someone knew how to fix this i would be very thankfull.
thanks in advance