...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?
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.
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...
tnx it's work good for me :P