Forum

> > CS2D > Scripts > What does it mean?
Forums overviewCS2D overview Scripts overviewLog in to reply

English What does it mean?

8 replies
To the start Previous 1 Next To the start

old What does it mean?

Mami Tomoe
User Off Offline

Quote
1
2
3
LUA ERROR: sys/lua/IF/sys/hooks.lua:841: attempt to index global 'Config' (a nil value)
 -> sys/lua/IF/sys/hooks.lua:841: in function <sys/lua/IF/sys/hooks.lua:383>
 -> in Lua hook 'menu', params: 1, 'Teleport Menu', 2

I get it while trying to use a menu, here's the code:
http://pastie.org/10384298
edited 3×, last 29.08.15 10:26:11 pm

old Re: What does it mean?

DC
Admin Off Offline

Quote
The table/global/function/whatever named 'Config' is nil. Which means that you didn't assign any value to it. But you try to do something with it which obviously fails with that error message because it is nil.

btw: There are code pasting pages. Use them instead of uploading single Lua files (it's very annoying to click through ads / find a download button and actually download something manually just to be able to help) or just post the entire code here in a code tag if it isn't super long.

old Re: What does it mean?

Ajmin
User Off Offline

Quote
I hope theres a config.lua comes in ur file,as it is a rp lua,
If theres no such a file,Find one or PM me,If u have,Then open it fine if theres a value for notele.

old Re: What does it mean?

Nekomata
User Off Offline

Quote
Quote
Sorry, there is no pastie #10380050 or it has been removed.

Can't see the script.

Judging by the line number that error is occurring on, you're probably running someone's admin/server script. You could directly ask them for a solution as they'd know it best.

From what it seems to me is that you're missing out a configuration value which is probably being picked up from a file somewhere but is returning nil. (Config stuff is missing or corrupt).

And since you're not scripting, the only one who'd efficiently be able to help you with this would be the one who developed that.

old Re: What does it mean?

Mami Tomoe
User Off Offline

Quote
@user Nekomata:
Link updated, and the creator haven't visited in years so...

I have:
hooks.lua
functions.lua
addons.lua
roleplay.lua



Never mind i fixed it! feel free to lock this topic if youre bored

the roleplay.lua had a problem with the "notele" thing

i had it to something like {1,2}
and it needed to look like {1,1},{2,2}
edited 3×, last 30.08.15 12:38:15 pm

old Re: What does it mean?

Nekomata
User Off Offline

Quote
You might as well briefly put out the solution here in case someone else encounters this problem.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview