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

Table doesn't work correctly

Started by Creeper32605, 17 October 2013 - 06:47 AM
Creeper32605 #1
Posted 17 October 2013 - 08:47 AM
Title: Table doesn't work correctly

Note: this is my second post

I was working on an api-kind-of thing, which saves everything outputted to the screen in a table. I was testing it, and it should not break the computer so i renamed the "term." to "a". Everything works fine, except for the "awrite( string )" function, which is the only function which writes into the table. Here is the code: http://pastebin.com/NJ2Jczqf. The very bottom lines are for testing, and then it outputs on the screen: "Random words.". Line 2: "Char at 1,2: " (nothing!?). But getting the character at 1,1 works, so that means awrite() only saves the first character, so what did i do wrong?
Bomb Bloke #2
Posted 17 October 2013 - 06:20 PM
Change your agetChar(1,2) call to agetChar(2,1).