Originally Posted by votan
I think the problem is the DoesScriptNameExist function.
CLICK4INFO.sv.scripts is a indexed table (using table.insert)
The function should be like this:
Lua Code:
local function DoesScriptNameExist(scriptName) local scripts = CLICK4INFO.sv.scripts for _, script in ipairs(scripts) do if script.scriptName == scriptName then return true end end return false end
CU
|
Oh yeah I forgot I changed how I was saving the information. I was doing it like Garkin suggested below and forgot to fix that function.
But, that does not solve the problem.