link to my code http://pastebin.com/whd2cMHu
EDIT: My bad, I added the copy right after I started the topic, so its really at line 23 now… sorry
local tCoords = {
[1] = { 36, 50, 15, 16, "Create Account" },
[2] = { 2, 7, 15, 16, "Login" }, --this is line 23
}
Actually, (lol) I did do that at first, and it gave the exact same error…Actually, the title error you gave says line 23, the string "DynationOS" thing is the program name
around line 23 you have this:local tCoords = { [1] = { 36, 50, 15, 16, "Create Account" }, [2] = { 2, 7, 15, 16, "Login" }, --this is line 23 }
Your issue is the second comma, it implies that you're going to add another item to the table but you don't, you leave it blank, hence the error.
Actually, the title error you gave says line 23, the string "DynationOS" thing is the program name
around line 23 you have this:local tCoords = { [1] = { 36, 50, 15, 16, "Create Account" }, [2] = { 2, 7, 15, 16, "Login" }, --this is line 23 }
Your issue is the second comma, it implies that you're going to add another item to the table but you don't, you leave it blank, hence the error.
Yeah I thought that too, but thing is, what is the problem with it? Since I do get an error either way…Actually, the title error you gave says line 23, the string "DynationOS" thing is the program name
around line 23 you have this:local tCoords = { [1] = { 36, 50, 15, 16, "Create Account" }, [2] = { 2, 7, 15, 16, "Login" }, --this is line 23 }
Your issue is the second comma, it implies that you're going to add another item to the table but you don't, you leave it blank, hence the error.
I believe you add the comma after each index.
Actually, the title error you gave says line 23, the string "DynationOS" thing is the program name
around line 23 you have this:local tCoords = { [1] = { 36, 50, 15, 16, "Create Account" }, [2] = { 2, 7, 15, 16, "Login" }, --this is line 23 }
Your issue is the second comma, it implies that you're going to add another item to the table but you don't, you leave it blank, hence the error.
I believe you add the comma after each index.
Lol not to be rude… but can one of you just help me with why its having the error, since it does already just do the error anyways the the comma or no comma.Actually, the title error you gave says line 23, the string "DynationOS" thing is the program name
around line 23 you have this:local tCoords = { [1] = { 36, 50, 15, 16, "Create Account" }, [2] = { 2, 7, 15, 16, "Login" }, --this is line 23 }
Your issue is the second comma, it implies that you're going to add another item to the table but you don't, you leave it blank, hence the error.
I believe you add the comma after each index.
Except the last one, because there are no more to come after it.
Yeah I thought that too, but thing is, what is the problem with it? Since I do get an error either way…
Actually, the title error you gave says line 23, the string "DynationOS" thing is the program name
around line 23 you have this:local tCoords = { [1] = { 36, 50, 15, 16, "Create Account" }, [2] = { 2, 7, 15, 16, "Login" }, --this is line 23 }
Your issue is the second comma, it implies that you're going to add another item to the table but you don't, you leave it blank, hence the error.
I believe you add the comma after each index.
Except the last one, because there are no more to come after it.
Except the last one, because there are no more to come after it.
Nope, according to the examples of tables provided in the Lua PIL, ALL indexes end in a comma.
Trailing commas are optional.
As for the problem at hand, I don't really see anything wrong with it. I even ran it and it worked fine.
…Well, I tried to register an account and I received "dynos-test:115: attempt to index ? (a nil value)", which is probably caused by me not having a DOS folder.
*Face Palm* Sorry guys, I got the error cuz I was editing my cc emulator version, when I was trying to use it in reg minecraft, so the whole time nothing was wrong, I feel really stupid.
I wouldn't be surprised, Java can be quite picky at times lolI can only recall trailing commas being allowed in CC, because it always errored in Love2D. Maybe it's a Java thing.