Forum

> > CS2D > Scripts > What does it mean?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch What does it mean?

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt What does it mean?

Mami Tomoe
User Off Offline

Zitieren
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
3× editiert, zuletzt 29.08.15 22:26:11

alt Re: What does it mean?

DC
Admin Off Offline

Zitieren
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.

alt Re: What does it mean?

Ajmin
User Off Offline

Zitieren
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.

alt Re: What does it mean?

Nekomata
User Off Offline

Zitieren
Zitat
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.

alt Re: What does it mean?

Mami Tomoe
User Off Offline

Zitieren
@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}
3× editiert, zuletzt 30.08.15 12:38:15

alt Re: What does it mean?

Nekomata
User Off Offline

Zitieren
You might as well briefly put out the solution here in case someone else encounters this problem.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht