i get in gag
 

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

i get in gag

Started by TrIp-iN-SuN, 06 March, 2007, 10:54:30

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TrIp-iN-SuN

   ...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?

bastya_elvtars

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.
Everything could have been anything else and it would have just as much meaning.

Madman

Code: lua
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...
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

#3
tnx it's work good for me  :P

SMF spam blocked by CleanTalk