• net.Receive can't see globals?
    2 replies, posted
in my serverside code I have something like this [CODE] if SERVER then SomeTable = {} net.Receive("SomeString", function(len, ply) local tbl = net.ReadTable() if tbl then SomeTable = tbl end end) end [/CODE] and then when I use this, I get [CODE]attempt to index global 'SomeTable' (a nil value)[/CODE] Whoops, well I fixed it. It was because it was inside of the if statement.
Post your actual code, not "something like" it. The code you gave wouldn't give that error.
[QUOTE=.\\Shadow};48559496]Post your actual code, not "something like" it. The code you gave wouldn't give that error.[/QUOTE] That wasn't the issue, but I've fixed it.
Sorry, you need to Log In to post a reply to this thread.