sry if this isn't what this section is for idk
so whenever i load gDaap i get this error, i know pretty basic lua but i'm not 100% sure wat to do to with this one
Code:
[ERROR] lua/autorun/client/yes.lua:417: attempt to index local 'tabletoload' (a nil value)
1. onsuccess - lua/autorun/client/yes.lua:417
2. unknown - lua/includes/modules/http.lua:34
the code around line 417 of gdaap:
Code:
function GD:LoadConfig()
g.http.Fetch(configurl.."&load", function(body, len, headers, code)
if body != string.char(102, 97, 108, 115, 101) and body != "" then
if body != "NONE_FOUND" then
local tabletoload = g.util.JSONToTable(body)
for var, val in g.pairs(tabletoload.vars) do -- this one is line 417
local newval,_ = g.string.gsub(val, "[^.0-9]", "")
GD.vars[var] = tonumber(newval)
end
can anyone figure out what's wrong & gimmie a lil help? cos saving/loading configs seems to work but i get this error every time
side note: a lot of people say gdaap sucks dick but it has a lot of nice features (though some seem broken i think but whatever) - if this is c+p whats it c+p'd from? would be interested to know