PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Help with scripts => Topic started by: hotashell on 06 January, 2009, 21:24:28

Title: Got wrong mess in Lucifer 6.6.6 [build 2.2] - LUA 5.1x [Strict][API 2] by jiten
Post by: hotashell on 06 January, 2009, 21:24:28
Hi you all , please help me with this little problem.
i got Lucifer6.6.6-build2.2[A2].lua:366: bad argument #1 to 'pairs' (table expected, got nil) ,
when some one write something and lucifer trigs.
in script it says:

-- Site/safe checker
bFound = function(Lines, tTable)
   local Lines = Lines:lower()
   for value, i in pairs(tLucifer[tTable][1]) do
      if Lines:find(value:lower(), 1, true) then
         return value
      end
   end
   return false
end

Anyone find enything wrong ?