English What does it mean?

8 replies
Goto Page
To the start Previous 1 Next To the start
27.08.15 07:58:46 pm
Up
Mami Tomoe
User
Offline Off
Code:
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
fish
27.08.15 08:06:18 pm
Up
DC
Admin
Offline Off
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.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
27.08.15 10:44:06 pm
Up
Mami Tomoe
User
Offline Off
How to fix it?
edited 1×, last 28.08.15 12:03:05 pm
fish
28.08.15 02:50:12 pm
Up
TimeQuesT
User
Offline Off
Assign a value to "Config".
Muh
28.08.15 03:30:49 pm
Up
Ajmin
User
Offline Off
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.
29.08.15 08:02:58 pm
Up
Mami Tomoe
User
Offline Off
user TimeQuesT has written:
Assign a value to "Config".


How? I'm not a scripter...
fish
29.08.15 10:05:18 pm
Up
Nekomata
User
Offline Off
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.
29.08.15 10:26:43 pm
Up
Mami Tomoe
User
Offline Off
@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
fish
30.08.15 12:30:59 pm
Up
Nekomata
User
Offline Off
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