syntax error : [string "start"]:7: `)' expected near `"Închide"'
teleport.quest:55:Abort (core dumped)
teleport.quest:55:Abort (core dumped)
quest warpring begin
state start begin
when 70007.use begin
local x
local y
local t
local e = pc.get_empire()
say_title("Teleporter:")
say("Incotro vrei sa mergi straine?")
local s = select("Map1", "Map2", "Map Farm", "Închide")
if s==1 then
say_title("Teleporter")
say("Incotro vrei sa mergi straine?")
t = select("Regatul Rosu", "Regatul Galben", "Regatul Albastru", "Închide")
if t==1 then
x="473900"
y="954600"
elseif t==2 then
x="63200"
y="166700"
elseif t==3 then
x="959600"
y="269700"
end
elseif s==2 then
say_title("Teleporter:")
say("Incotro vrei sa mergi straine?")
t = select("Regatul Rosu", "Regatul Galben", "Regatul Albastru", "Închide")
if t==1 then
x="352300"
y="882700"
elseif t==2 then
x="145700"
y="239800"
elseif t==3 then
x="863800"
y="246000"
end
return
end
elseif s==3 then
say_title("Teleporter:")
say("Incotro vrei sa mergi straine?")
t = select("Map Farm F&C", "Map Farm B&G", "Închide")
if t==1 then
x="38100"
y="64600"
elseif t==2 then
x="19800"
y="10600"
end
if s!=5 or p!= 6 then
pc.warp(x, y)
end
end
end
end
state start begin
when 70007.use begin
local x
local y
local t
local e = pc.get_empire()
say_title("Teleporter:")
say("Incotro vrei sa mergi straine?")
local s = select("Map1", "Map2", "Map Farm", "Închide")
if s==1 then
say_title("Teleporter")
say("Incotro vrei sa mergi straine?")
t = select("Regatul Rosu", "Regatul Galben", "Regatul Albastru", "Închide")
if t==1 then
x="473900"
y="954600"
elseif t==2 then
x="63200"
y="166700"
elseif t==3 then
x="959600"
y="269700"
end
elseif s==2 then
say_title("Teleporter:")
say("Incotro vrei sa mergi straine?")
t = select("Regatul Rosu", "Regatul Galben", "Regatul Albastru", "Închide")
if t==1 then
x="352300"
y="882700"
elseif t==2 then
x="145700"
y="239800"
elseif t==3 then
x="863800"
y="246000"
end
return
end
elseif s==3 then
say_title("Teleporter:")
say("Incotro vrei sa mergi straine?")
t = select("Map Farm F&C", "Map Farm B&G", "Închide")
if t==1 then
x="38100"
y="64600"
elseif t==2 then
x="19800"
y="10600"
end
if s!=5 or p!= 6 then
pc.warp(x, y)
end
end
end
end
EDIT: Am rezolvat aceea eroare dar cand dau pe Map Farm si aleg una dintre cele 2 mape nu am teleporteaza.




