mangal1otu 1 Posted May 23, 2020 Share Posted May 23, 2020 Version of Files : XXX Hi all. I have a problem, not work Teleport Dungeon. Press F5 end... nothing... In sysser i have dis error Quote SYSERR: May 23 20:23:11 :: RunState: LUA_ERROR: locale/romania/quest/questlib.lua:80: attempt to index a nil value SYSERR: May 23 20:23:11 :: WriteRunningStateToSyserr: LUA_ERROR: quest dungeon_manager.start click This is dungeon_manager quest Quote quest dungeon_manager begin state start begin when login or enter begin dungeonLib.update() end when button begin cmdchat("GetDungeonInfo INPUT#1") local cmd = split(input(cmdchat("GetDungeonInfo CMD#")), "#") cmdchat("GetDungeonInfo INPUT#0") if cmd[1] == "WARP" then pc.warp(tonumber(cmd[2]) * 100, tonumber(cmd[3]) * 100) elseif cmd[1] == "RANKING" then dungeonLib.update_ranking(tonumber(cmd[2]), tonumber(cmd[3])) end end end end end this is questlib.lua Quote mysql_query = function(query) if not pre then local rt = io.open('CONFIG','r'):read('*all') pre,_= string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+)%s(%S+).+','-h%1 -u%2 -p%3 -D%4') end math.randomseed(os.time()) local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2^10),{},{} -- os.execute('mysql '..pre..' --e='..string.format('%q',query)..' > '..fi) -- fur MySQL51 os.execute('mysql '..pre..' -e'..string.format('%q',query)..' > '..fi) -- fur MySQL55 for av in io.open(fi,'r'):lines() do table.insert(t,split(av,'\t')) end; os.remove(fi); -- This is line 80 for i = 2, table.getn(t) do table.foreach(t,function(a,b) out[i-1] = out[i-1] or {} out[i-1][a] = tonumber(b) or b or 'NULL' out[t[1][a]] = out[t[1][a]] or {} out[t[1][a]][i-1] = tonumber(b) or b or 'NULL' end) end return out end 1 Link to comment Share on other sites More sharing options...
mangal1otu 1 Posted May 23, 2020 Author Share Posted May 23, 2020 solved. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now