PtokaX forum

Archive => Leviathan => AllInOne Scripts => Archived 5.1 boards => Leviathan - Bugs => Topic started by: electronic_Psycho on 05 April, 2007, 04:26:41

Title: [solved] error ..
Post by: electronic_Psycho on 05 April, 2007, 04:26:41
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.
Title: Re: error ..
Post by: Leun on 05 April, 2007, 08:45:08
Can you paste the function?
Title: Re: error ..
Post by: Cêñoßy†ê on 06 April, 2007, 00:26:40
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) Select

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) Select

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 ;)
Title: Re: error ..
Post by: electronic_Psycho on 06 April, 2007, 02:30:50
 :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.