Random Table error?

I’m getting this error and its not very descriptive. Anyone knows more about it? It just randomly appeared after that last update.



[ERROR] lua/includes/extensions/table.lua:161: bad argument #1 to 'pairs' (table expected, got nil)
  1. pairs - [C]:-1
   2. Count - lua/includes/extensions/table.lua:161
    3. unknown - lua/includes/extensions/table.lua:173




-- You probably have something like this
for _,v in pairs(Something) do -- Something has to be a table - the error is saying that you didn't supply a table.

end


Also I just re-read your post; since you mentioned it happened after the update, it means that whatever script threw that error has the above problem.

You’ve supplied table.Random a non-table value. Is that the entire stack trace?

That’s the entire stack trace, that’s what is disturbing about that error. So you’re saying it has to do with a certain table.Random somewhere in the code?

Yeah I see line 173 is the problem. I’ll check out what I can find. Thanks.

[editline]11th July 2014[/editline]

After going through my code I replaced every table.Random with myTable[math.random(#myTable)], disabled all my workshop addons and deleted other custom addons and I still get the error starting the gamemode.