• 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 again (last one)

Glidarn

Member
Joined
May 9, 2009
Messages
970
Reaction score
16
Location
Åkersberga, Sweden
As the topic says... my last bug on this server


Imageshack - lastbug.jpg

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


//Glidarn
 
Code:
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