Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 13 14 15 16 17 18 Next »
Table limit?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Table limit?
29-05-2015, 09:05 PM, (This post was last modified: 29-05-2015, 09:09 PM by Destiny's Player.)
#1
Destiny's Player Offline
A passing by member
***
Posts: 237
Threads: 35
Joined: Dec 2013
Table limit?
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?
Find
Reply
29-05-2015, 09:26 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Table limit?
Did you try actually printing out the values of the table (using print())? I'd imagine it's just the wire debugger.
Find
Reply
29-05-2015, 09:27 PM,
#3
Destiny's Player Offline
A passing by member
***
Posts: 237
Threads: 35
Joined: Dec 2013
RE: Table limit?
(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.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.