[Lua][Error]bios:337: [string "DynationOS"]:23: unexpected symbol
#1
Posted 16 March 2013 - 02:54 PM
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
#2
Posted 16 March 2013 - 03:14 PM
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.
#3
Posted 16 March 2013 - 03:18 PM
Pharap, on 16 March 2013 - 03:14 PM, said:
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.
#4
Posted 16 March 2013 - 03:30 PM
Pharap, on 16 March 2013 - 03:14 PM, said:
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.
#5
Posted 16 March 2013 - 03:39 PM
Dlcruz129, on 16 March 2013 - 03:30 PM, said:
Pharap, on 16 March 2013 - 03:14 PM, said:
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.
#6
Posted 16 March 2013 - 03:39 PM
Dlcruz129, on 16 March 2013 - 03:30 PM, said:
Pharap, on 16 March 2013 - 03:14 PM, said:
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.
#7
Posted 16 March 2013 - 03:42 PM
Pharap, on 16 March 2013 - 03:39 PM, said:
Dlcruz129, on 16 March 2013 - 03:30 PM, said:
Pharap, on 16 March 2013 - 03:14 PM, said:
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.
#9
Posted 16 March 2013 - 03:45 PM
Pharap, on 16 March 2013 - 03:39 PM, said:
Dlcruz129, on 16 March 2013 - 03:30 PM, said:
Pharap, on 16 March 2013 - 03:14 PM, said:
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.
Nope, according to the examples of tables provided in the Lua PIL, ALL indexes end in a comma.
#10
Posted 16 March 2013 - 03:47 PM
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.
#11
Posted 16 March 2013 - 03:49 PM
#12
Posted 16 March 2013 - 03:54 PM
Dlcruz129, on 16 March 2013 - 03:45 PM, said:
Either way works in CC apparently, though I'm certain a comma following a nonexistant entry used to error.
Kingdaro, on 16 March 2013 - 03:47 PM, said:
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.
Nice to have a voice of reason.
Spongy141, on 16 March 2013 - 03:49 PM, said:
Well that's 8 minutes of my life gone lol
At least it's sorted now, that's the main thing.
#13
Posted 16 March 2013 - 03:58 PM
3 user(s) are reading this topic
0 members, 3 guests, 0 anonymous users











