Hi, i got a problem with my mod of Chatstatsv2.. I get this syntax error..
Syntax error: attempt to compare number with nil
stack traceback:
1: function `NewUserConnected' at line 676 [file `...tokaX-0.330 madhouse\scripts\chatsstatsv2.2.lua']
But i cant find anything wrong... can someone please have a look and tell me what wrong?
http://destruction.myftp.org/filer/DC/chatsstatsv2.2.lua
The script was to big to fit in a post... ;p
Hi,
Doesn't the error have more lines ???
Best regards, nErBoS
nope.. And The weird is that i got 21998 posts witch should show text100... But the error are at the text91 code...
Complete txt in the script editor
No syntax errors in script file chatsstatsv2.2.lua
No syntax errors in script file drunkbot 2.0.lua
No syntax errors in script file Fun v2.lua
No syntax errors in script file kenny hawk.lua
No syntax errors in script file Login.lua
No syntax errors in script file Replace.lua
No syntax errors in script file RoboCopv8.0b.lua
No syntax errors in script file userdrink.lua
No syntax errors in script file zRightClicker6.lua
Syntax error: attempt to compare number with nil
stack traceback:
1: function `NewUserConnected' at line 676 [file `...tokaX-0.330 madhouse\scripts\chatsstatsv2.2.lua']
so The error comes when I log on
Hi,
Found the error, instead of this...
--Start at line 486
postcount = 18400
function text91(user)
if stats[user.sName] then
local tmp = stats[user.sName]
if tonumber(tmp[2]) then
SendToAll(Bot, " "..user.sName.." got "..tmp[2].." characters... That must be many many words....")
end
end
end
postcount = 18600
function text92(user)
SendToAll(Bot, " Hello hello "..user.sName.."! Time for some chatting again ")
end
postcount = 18800
function text93(user)
SendToAll(Bot, " "..user.sName.." just cant be quiote for one minute ")
end
postcount = 19000
function text94(user)
SendToAll(Bot, " Do you know that it is more in life then just to chat in "..sHubName.." "..user.sName.."?")
end
postcount = 19200
function text95(user)
SendToAll(Bot, " TurboMouth :p "..user.sName.." is here again")
end
postcount = 19400
function text96(user)
SendToAll(Bot, "The Word book "..user.sName.." is in the hub =)")
end
postcount = 19600
function text97(user)
SendToAll(Bot, " If there is a limted supply of words "..user.sName.." would be the first one to notice ")
end
postcount = 19800
function text98(user)
SendToAll(Bot, " The loudspeaker "..user.sName.." logged in")
end
postcount = 20000
function text99(user)
SendToAll(Bot, "Start typping people "..user.sName.." is in the hub")
end
postcount = 22000
function text100(user)
SendToAll(Bot, "At a rapid pace "..user.sName.." talks")
end
for this...
postcount91 = 18400
function text91(user)
if stats[user.sName] then
local tmp = stats[user.sName]
if tonumber(tmp[2]) then
SendToAll(Bot, " "..user.sName.." got "..tmp[2].." characters... That must be many many words....")
end
end
end
postcount92 = 18600
function text92(user)
SendToAll(Bot, " Hello hello "..user.sName.."! Time for some chatting again ")
end
postcount93 = 18800
function text93(user)
SendToAll(Bot, " "..user.sName.." just cant be quiote for one minute ")
end
postcount94 = 19000
function text94(user)
SendToAll(Bot, " Do you know that it is more in life then just to chat in "..sHubName.." "..user.sName.."?")
end
postcount95 = 19200
function text95(user)
SendToAll(Bot, " TurboMouth :p "..user.sName.." is here again")
end
postcount96 = 19400
function text96(user)
SendToAll(Bot, "The Word book "..user.sName.." is in the hub =)")
end
postcount97 = 19600
function text97(user)
SendToAll(Bot, " If there is a limted supply of words "..user.sName.." would be the first one to notice ")
end
postcount98 = 19800
function text98(user)
SendToAll(Bot, " The loudspeaker "..user.sName.." logged in")
end
postcount99 = 20000
function text99(user)
SendToAll(Bot, "Start typping people "..user.sName.." is in the hub")
end
postcount100 = 22000
function text100(user)
SendToAll(Bot, "At a rapid pace "..user.sName.." talks")
end
Best regards, nErBoS
Okey now thats embarrassing...lol... i made thoose functions..
and i didn't see that i forgot to add the numbers on postcount....