Where I make a mistake?
I guess i did somethings wrong
1
2
3
4
2
3
4
addhook("say","pha.says")
function pha.says(id,txt)
if c == "!anycode" then
parse(...
Scripts
Addhook error with closing game
Addhook error with closing game
1

addhook("say","pha.says")
function pha.says(id,txt)
if c == "!anycode" then
parse(...
phaanywhere?
pha = {} addhook("say","says")
function says(id,txt)
if c == "!anycode" then
parse(...
DC: There is my question, How to represent the error or unavaible command? ....
elseif c == "!name" then
parse("name "....
else
msg2(id,"(error msg))
return 1
end
...
canywhere. It will have the value
nil(which means "undefined"/"no value" in Lua).
txtbecause you called the second function parameter in the hooked function like that.
DC:elseif komutlar == "!slap" and svadmin(id) then
if not args[2] then msg2(id,"\169255000000ERROR: You did not type the ID") return 1 end
parse("slap "..args[2])
msg("\169255255255SERVER: dddkdk")
return 1
	 else
		msg2(id,"\169250000000ERROR: That command isnt true "..args[1])
		return 1
		end
		return 1
		else
		if svadmin(id) then
msg("\169"..player(id,"name").." : "..txt)
end
return 1
end
	
end
elseif komutlar == "!slap" and svadmin(id) then
			if not args[2] then msg2(id,"\169255000000ERROR: You did not type the ID") return 1 end
			parse("slap "..args[2])
			msg("\169255255255SERVER: dddkdk")
		else
			msg2(id,"\169250000000ERROR: That command isnt true "..args[1])
		end
		return 1
	else
		if svadmin(id) then
			msg("\169255255255"..player(id,"name").." : "..txt)
			return 1
		end
	end
end
Mami Tomoe: Thx bro
1
