Jump to content




[Deleted]

api lua utility

7 replies to this topic

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

#1 Bye.

  • Members
  • 59 posts

Posted 25 March 2016 - 02:05 PM

[...]

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


#2 mrpew

  • New Members
  • 2 posts

Posted 16 April 2016 - 04: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)


#3 moTechPlz

  • Members
  • 40 posts

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


#4 mrpew

  • New Members
  • 2 posts

Posted 16 April 2016 - 11:44 PM

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.

#5 Lupus590

  • Members
  • 2,029 posts
  • LocationUK

Posted 17 April 2016 - 01:20 PM

 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.


#6 Bye.

  • Members
  • 59 posts

Posted 10 June 2016 - 10:10 PM

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.


#7 unnamedcoder

  • Members
  • 23 posts

Posted 11 June 2016 - 10:17 PM

 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.


#8 Bye.

  • Members
  • 59 posts

Posted 14 June 2016 - 12:14 PM

 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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users