PtokaX forum

Archive => Leviathan => AllInOne Scripts => Archived 5.1 boards => Leviathan - Bugs => Topic started by: TrIp-iN-SuN on 06 March, 2007, 10:54:30

Title: i get in gag
Post by: TrIp-iN-SuN on 06 March, 2007, 10:54:30
   ...PsySun/scripts/LV_DataBase/lua/Kick_Ban_Commands.lua:265: attempt to concatenate local 'Name' (a nil value)

i get this error when i gag same one i use leviathan 3.0
same can help or what?
Title: Re: i get in gag
Post by: bastya_elvtars on 06 March, 2007, 13:03:15
It has been told that development will be a bit slower. Please be patient to the developers of this bot, don't forget, Leviathan is provided for free.
Title: Re: i get in gag
Post by: Madman on 06 March, 2007, 22:53:57
Code (lua) Select

local s,e,cmd,Name = string.find(data, "%b<>%s+(%S+)%s+(%S+)")
if user.iProfile == 6 or Command_Permission["gag"][user.iProfile] == 1 then
local victim = GetItemByName(Name)
if victim then
if Name == user.sName then
user:SendData(Cfg.Bot_Name,"Pff.. bored perhaps??")
return 1
end
if ProtectionTable[user.iProfile][victim.iProfile] == 0 then
user:SendData(Cfg.Bot_Name,"You silly mortal... you cant Gag ["..Cvrt.P2[user.iProfile].."] with that profile!!!")
end
Gag[victim]= 1
return 0
else
if Name then
user:SendData(Cfg.Bot_Name,Name.." not online!!")
else
user:SendData(Cfg.Bot_Name,"Syntax: !gag <Name>")
end
end
else
Forbidden(user)
end
return 1
end


Replace the code between Command["gag"] = function(user,data) and Command["ungag"] = function(user,data) with that code, should fix that error...

everythign works fine for me with that fix...
Title: Re: i get in gag
Post by: TrIp-iN-SuN on 07 March, 2007, 13:41:43
tnx it's work good for me  :P