• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

A bug as usual

8683984

New Member
Joined
Jun 5, 2009
Messages
95
Reaction score
2
Location
Sweden
Does anyone know what kinda error this is ?

error as usual jpg

Appriciate fast help :)

_/_/_/
 
It's a error on line 14 of animatedtext.lua, where it attempts to compare a number with nil. We cant fix it though unless you post the script.
 
animatedtext.lua

LUA:
function onSay(cid, words, param, channel)
	if(param == '') then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
		return true
	end

	local t = string.explode(param, ",")
	local tmp = t[1]
	if(t[2]) then
		tmp = t[2]
	end

	t[1] = tonumber(t[1])
	if(t[1] > 0 and t[1] < 256) then
		doSendAnimatedText(getCreaturePosition(cid), tmp, t[1])
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Typed color has to be between 0 and 256")
	end

	return true
end
 
LUA:
function onSay(cid, words, param, channel)
	if(param == '') then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
		return true
	end
 
	local t = string.explode(param, ",")
	local tmp = t[1]
	if(t[2]) then
		tmp = t[2]
	end
 
	t[1] = tonumber(t[1])
	if(t[1] and t[1] > 0 and t[1] < 256) then
		doSendAnimatedText(getCreaturePosition(cid), tmp, t[1])
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Typed color has to be between 0 and 256")
	end
 
	return true
end
 
Back
Top