Forum

> > CS2D > Scripts > error attemp call ni value
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch error attemp call ni value

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt error attemp call ni value

superpegamento
User Off Offline

Zitieren
to say a word appears this error in console

error attemp call ni value
error attemp call ni value
error attemp call ni value
error attemp call ni value
error attemp call ni value

it can be?

alt Re: error attemp call ni value

Rainoth
Moderator Off Offline

Zitieren
Dude. You are running a script.
That script is asking for a non existing thing or tries to call it.

Attempt to call a nil value means
"I'm trying to use something that doesn't exist"

If it's a plain error like that. It's probably that you added a hook but gave it no function. Like e.g. you made

1
2
3
addhook("say","potato1")
function potato2(id,t)
end

You name function potato2 but your hook calls potato1 and this way you will always get an error.

alt Re: error attemp call ni value

Bowlinghead
User Off Offline

Zitieren
1
2
3
if v==1 then
	msg("v is 1")
end
If you write it, then you´ll get the same error, because "v" does not exist. It is not automatic 0!

1
2
3
4
v=0
if v==1 then
	msg("v is 1")
end

Now you´ll get no error.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht