Chatstatsv2.2 - error
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Chatstatsv2.2 - error

Started by Madman, 24 September, 2004, 19:57:57

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Madman

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
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

nErBoS

#1
Hi,

Doesn't the error have more lines ???

Best regards, nErBoS
--## nErBoS Spot ##--

Madman

#2
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
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

nErBoS

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
--## nErBoS Spot ##--

Madman

#4
Okey now thats embarrassing...lol... i made thoose functions..
and i didn't see that i forgot to add the numbers on postcount....
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

SMF spam blocked by CleanTalk