Bug In Function UserInfo
 

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

Bug In Function UserInfo

Started by 6Marilyn6Manson6, 16 April, 2007, 00:21:34

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

6Marilyn6Manson6



   Script error found, please notify C??o?y?? or T?M??r?V?ll?R with this message:
   Leviathan v3.22 PtokaX 0.3.5.2 Lua 5.1
   ...rio/Desktop/PX/scripts/LV_DataBase/lua/Functions.lua:301: attempt to index field '?' (a nil value)


   Script error found, please notify C??o?y?? or T?M??r?V?ll?R with this message:
   Leviathan v3.22 PtokaX 0.3.5.2 Lua 5.1
   ...rio/Desktop/PX/scripts/LV_DataBase/lua/Functions.lua:304: attempt to index field '?' (a nil value)


And in showerror command:

tbl = {
   ["...rio/Desktop/PX/scripts/LV_DataBase/lua/Functions.lua:301: attempt to index field '?' (a nil value)"] = 1,
   ["...rio/Desktop/PX/scripts/LV_DataBase/lua/Functions.lua:304: attempt to index field '?' (a nil value)"] = 1,
}

I don't understand this error :S

Psycho_Chihuahua

get the same error here too

   Script error found, please notify C??o?y?? or T?M??r?V?ll?R with this message:
   Leviathan v3.22 PtokaX 0.3.6.0 Lua 5.1
   ...viathanHub3.22/scripts/LV_DataBase/lua/Functions.lua:301: attempt to index field '?' (a nil value)

happens when a user comes in using ApexDC at the moment (not sure if its to do with the client or not as there only a dozen users in that hub)
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

Cêñoßy†ê

bug is on message counter part ;)
I think both of you have registered users via PtokaX GUI ??
If so,remember to restart leviathan so it adds that users name to own database.


UpdateMessages = function(user,what)
	if what == "Main" then
		local iUpdate = UserInfo[string.lower(user.sName)]["Messages"] ["MAIN"] or 0 -- line 301
		iUpdate = iUpdate + 1 UserInfo[string.lower(user.sName)]["Messages"] ["MAIN"] = iUpdate
	else
		local iUpdate = UserInfo[string.lower(user.sName)]["Messages"] ["PM"] or 0 --line 304
		iUpdate = iUpdate + 1 UserInfo[string.lower(user.sName)]["Messages"] ["PM"] = iUpdate
	end
	saveTableToFile(UserInfoFile,UserInfo,"UserInfo")
end
Powered By Leviathan™ 2nd Generation v. 1.9

Psycho_Chihuahua

it happend when a user tried to enter the hub using apexdc, i then told him to try using dc emulation for entering the hub which he then did, on that the error disapeared and hasnt happend again so far
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

6Marilyn6Manson6

Quote from: Psycho_Chihuahua on 16 May, 2007, 22:57:37
it happend when a user tried to enter the hub using apexdc, i then told him to try using dc emulation for entering the hub which he then did, on that the error disapeared and hasnt happend again so far

My client is ApexDC and I receive same error  ::)

Madman

That function is used 2 times, if user writes in pm or in main, then the script calls this funtion...


I logged in with ApexDC, no error. dosent matter if i was regged or not
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

TrIp-iN-SuN

i get this but in LV_3.1 i dont doing nathing and its show me same time this bug

C:/PsySun3/scripts/LV_DataBase/lua/Functions.lua:292: attempt to index field '?' (a nil value)

Madman

Quote from: TrIp-iN-SuN on 28 May, 2007, 10:50:29
i get this but in LV_3.1
Typo? or are you useing 3.1? if so, please upgrade
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

TrIp-iN-SuN

no i dont want to upgrade becose over new scripts dont have 7 profiles and here u have in 3.1

if u cant help me ok

Cêñoßy†ê

Quote from: TrIp-iN-SuN on 28 May, 2007, 10:50:29
i get this but in LV_3.1 i dont doing nathing and its show me same time this bug

C:/PsySun3/scripts/LV_DataBase/lua/Functions.lua:292: attempt to index field '?' (a nil value)

open file functions.lua
find lines -->
UpdateMessages = function(user,what)
	if what == "Main" then
		local iUpdate = UserInfo[user.sName]["Messages"] ["MAIN"] or 0
		iUpdate = iUpdate + 1 UserInfo[user.sName]["Messages"] ["MAIN"] = iUpdate
	else
		local iUpdate = UserInfo[user.sName]["Messages"] ["PM"] or 0
		iUpdate = iUpdate + 1 UserInfo[user.sName]["Messages"] ["PM"] = iUpdate
	end
	saveTableToFile(UserInfoFile,UserInfo,"UserInfo")
end


change it to this -->
UpdateMessages = function(user,what)
--	if what == "Main" then
--		local iUpdate = UserInfo[user.sName]["Messages"] ["MAIN"] or 0
--		iUpdate = iUpdate + 1 UserInfo[user.sName]["Messages"] ["MAIN"] = iUpdate
--	else
--		local iUpdate = UserInfo[user.sName]["Messages"] ["PM"] or 0
--		iUpdate = iUpdate + 1 UserInfo[user.sName]["Messages"] ["PM"] = iUpdate
--	end
--	saveTableToFile(UserInfoFile,UserInfo,"UserInfo")
end


that should solve that problem (fixed in newer versions) ;)
Powered By Leviathan™ 2nd Generation v. 1.9

TrIp-iN-SuN

its happned agian many time dont see this but its agian


C:/PsySun4/scripts/LV_DataBase/lua/Functions.lua:292: attempt to index field '?' (a nil value)
and this error too
C:/PsySun4/scripts/LV_DataBase/lua/Functions.lua:289: attempt to index field '?' (a nil value)

same one can help?

its happned when profile master but not for all users with that profile its happend type same thing in main chat or pm or use same command but i try to changed my self to master nathing happned and few profiles too this happned but not for all users
same one can help me here i wait few days no one answer me

SMF spam blocked by CleanTalk