View Single Post
03/22/15, 02:13 PM   #4
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by votan View Post
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:
  1. local function DoesScriptNameExist(scriptName)
  2.     local scripts = CLICK4INFO.sv.scripts
  3.     for _, script in ipairs(scripts) do
  4.         if script.scriptName == scriptName then
  5.             return true
  6.         end
  7.     end
  8.     return false
  9. 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.

Last edited by circonian : 03/22/15 at 02:29 PM.
  Reply With Quote