This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Bye.'s profile picture

[Deleted]

Started by Bye., 25 March 2016 - 01:05 PM
Bye. #1
Posted 25 March 2016 - 02:05 PM
[…]
Edited on 21 March 2020 - 05:50 PM
mrpew #2
Posted 16 April 2016 - 05:43 PM
Does not work, attempt to call nil using copy+paste'd example code:
table = {4,6,8,10,12}
charts.tableLines("",3,3,table,0)
moTechPlz #3
Posted 16 April 2016 - 07:46 PM
He should not have used 'table' as a variable in the example. Try this;

tTest = { 4, 6, 8, 10, 12 }
charts.tableLines( "", 3, 3, tTest, 0 )
Edited on 16 April 2016 - 05:52 PM
mrpew #4
Posted 17 April 2016 - 12:44 AM
Nope, table is not a lua keyword, that was not the problem, he declared that function as local. I would have edited that into my post but it was not approved at that point.
Lupus590 #5
Posted 17 April 2016 - 02:20 PM
table is not a lua keyword

true, but it is an api which gets used a lot in the background when you're handling tables
Edited on 17 April 2016 - 12:21 PM
Bye. #6
Posted 10 June 2016 - 11:10 PM
Now online: ChartsAPI 1.1
Write comments about what should I add in the next version :)/>
Edited on 11 June 2016 - 08:28 AM
unnamedcoder #7
Posted 11 June 2016 - 11:17 PM
He should not have used 'table' as a variable in the example. Try this;

tTest = { 4, 6, 8, 10, 12 }
charts.tableLines( "", 3, 3, tTest, 0 )

The following keywords are reserved and cannot be used as names: and, break, do, else, elseif, end, false, for, function, if, in, local, nil, not, or, in, local, nil, not,or, repeat, return, then, true, until, while.
Bye. #8
Posted 14 June 2016 - 01:14 PM
He should not have used 'table' as a variable in the example. Try this;

tTest = { 4, 6, 8, 10, 12 }
charts.tableLines( "", 3, 3, tTest, 0 )

The following keywords are reserved and cannot be used as names: and, break, do, else, elseif, end, false, for, function, if, in, local, nil, not, or, in, local, nil, not,or, repeat, return, then, true, until, while.

I've just modified the post with your suggestion