[solved] 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

[solved] error ..

Started by electronic_Psycho, 05 April, 2007, 04:26:41

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

electronic_Psycho

Hello ..
i work with "lv" a few dayes [new with that bot] 3.1 ver and px 3.5.2g1

&
i got this error when one of my ops pm me..
------------
scripts/LV_DataBase/lua/Functions.lua:290: attempt to index field '?' (a nil value)
-------------------
someone know how to fix it ?

Thanks..
s.

Leun

Can you paste the function?

Cêñoßy†ê

That is fixed in v3.21 but if you want to keep running 3.1 here is what to do:
1. open file Functions.lua (LV_DataBase\lua\) with notepad
2. hit buttons ctrl+g and type number 287 and hit enter

now you should see -->
Code: lua
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


3. replace that with this

Code: lua
UpdateMessages = function(user,what)
end


error came because leviathan doesent recognise if user logs in as mynick and is registered as MyNick..
Ptokax lets him in if nick is right but levi needds it as exact match to save in message counters ;)
Powered By Leviathan™ 2nd Generation v. 1.9

electronic_Psycho

 :D Hello and Thnks very much "Leun" & "C??o?y?? " !

i do it.. i only need test it...

thanks very much for the help.

i want use with 3.21 but the missed profile its my problem..

i wish to find a way to addthey again.. but i m not a scripter... so for me.. lol.. its cant be...
[sorry' bad english]

its great bot!! and sad that u stop with that project. you 2 do very good work.. !!

Thanks.
s.


SMF spam blocked by CleanTalk