English error attemp call ni value

4 replies
Goto Page
To the start Previous 1 Next To the start
06.07.13 03:30:04 am
Up
superpegamento
User
Offline Off
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?
06.07.13 04:50:37 am
Up
pbeloto
User
Offline Off
this happens when you try to do what?
06.07.13 05:59:04 am
Up
superpegamento
User
Offline Off
user pbeloto has written:
this happens when you try to do what?


this happens when they say any word
06.07.13 11:34:12 am
Up
Rainoth
Moderator
Offline Off
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

Code:
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.
12.07.13 03:53:47 pm
Up
Bowlinghead
User
Offline Off
Code:
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!

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


Now you´ll get no error.
Share time limited free games here
To the start Previous 1 Next To the start