←  APIs and Utilities

ComputerCraft | Programmable Computers for Minecraft

»

[Deleted]

Poll: [Deleted]

What do you think about this API?

You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.
Vote Guests cannot vote

Bye.'s Photo Bye. 25 Mar 2016

[...]
Edited by Checco2212, 21 March 2020 - 06:50 PM.
Quote

mrpew's Photo mrpew 16 Apr 2016

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)
Quote

moTechPlz's Photo moTechPlz 16 Apr 2016

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 by moTechPlz, 16 April 2016 - 06:52 PM.
Quote

mrpew's Photo mrpew 16 Apr 2016

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.
Quote

Lupus590's Photo Lupus590 17 Apr 2016

 mrpew, on 16 April 2016 - 11:44 PM, said:

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 by Lupus590, 17 April 2016 - 01:21 PM.
Quote

Bye.'s Photo Bye. 10 Jun 2016

Now online: ChartsAPI 1.1
Write comments about what should I add in the next version :)
Edited by Checco2212, 11 June 2016 - 09:28 AM.
Quote

unnamedcoder's Photo unnamedcoder 11 Jun 2016

 moTechPlz, on 16 April 2016 - 06:46 PM, said:

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.
Quote

Bye.'s Photo Bye. 14 Jun 2016

 unnamedcoder, on 11 June 2016 - 10:17 PM, said:

 moTechPlz, on 16 April 2016 - 06:46 PM, said:

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
Quote