wenn ich sie jedoch auf mein server hochlade kommt
PHP Code:
quest tele begin
state start begin
function warp_tab(warp)
local a,lvl={},pc.get_level()
table.foreach(warp,function(val,i)
if lvl >= val then table.insert(a,val) end
end)
return a
end
function local_table(warp)
--= tele.warp_tab(warp)???
local tabelle,main_menu,sel_table = tele.warp_tab(warp),{},{}
table.sort(tabelle)
table.foreach(tabelle,function(i,n) main_menu[i]={warp[n][1],warp[n][2]} sel_table[i]=warp[n][3] end)
return main_menu,sel_table
end
when 20041.chat."Teleport" begin
local warp={
--[lvl]={x,y,"Ort"},
[100]={3498900,3498900,"Run1"},
[120]={12470,12485,"Run2"},
[140]={5501,4925,"Buggy"},
}
say_title("Teleportieren:")
say()
say("Bitte sehr.")
say("Wohin möchtest du dich Teleportieren lassen?")
local ports,map_auswahl=tele.local_table(warp)
table.insert(map_auswahl,"Abbrechen")
local auswahl=select2(map_auswahl)--select_table(map_auswahl)
if auswahl==table.getn(map_auswahl) then return end
--pc.warp(ports[auswahl][1],ports[auswahl][2])
say(ports[auswahl][1].."x , "..ports[auswahl][2].." y")
end
end
end
Calls undeclared function! :
table.sort
Error occured on compile highport.quest
weiß einer was falsch ist?
gibt natürlich tthx