Team Spartan Cookies & Milk Forums
Table limit? - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: Table limit? (/thread-952.html)



Table limit? - Destiny's Player - 29-05-2015

There's a weird problem with this code down here.

if SERVER then
wire.createInputs({"Address","Num"},{"string","normal"})
wire.createOutputs({"Char","Debug"},{"string","table"})
Addr = wire.ports.Address
Unclamp = {}
for i=1,Addr:len() do
Unclamp[i] = string.sub(Addr,i,i)
end
wire.ports.Debug = Unclamp
end
Debug returns me only 7 parts of a table, and from testing, it appears like the loop doesn't put any characters into it after the seventh one.

Could it be that the Debug tool can't show more than 7 entries in a table?


RE: Table limit? - Person8880 - 29-05-2015

Did you try actually printing out the values of the table (using print())? I'd imagine it's just the wire debugger.


RE: Table limit? - Destiny's Player - 29-05-2015

(29-05-2015, 09:26 PM)Person8880 Wrote: Did you try actually printing out the values of the table (using print())? I'd imagine it's just the wire debugger.

I wanted to do that, but just after thinking about that I had to leave my computer. I'll try it tomorrow.