• 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!

attempt to concatenate a boolean value

DiZzyMaN

YouTalkinToMe?!
Joined
Jun 24, 2012
Messages
57
Reaction score
2
Help, Rep+

Code:
[16/06/2013 18:22:11] [Error - CreatureScript Interface] 
[16/06/2013 18:22:11] In a timer event called from: 
[16/06/2013 18:22:11] data/creaturescripts/scripts/updatemh.lua:onLogin
[16/06/2013 18:22:11] Description: 
[16/06/2013 18:22:11] data/creaturescripts/scripts/updatemh.lua:9: attempt to concatenate a boolean value
[16/06/2013 18:22:11] stack traceback:
[16/06/2013 18:22:11] 	data/creaturescripts/scripts/updatemh.lua:9: in function <data/creaturescripts/scripts/updatemh.lua:4>


Script:
Code:
local tfs_version = true
local otswe_updatetime = 3 -- Seconds
 
function updateMH(cid) 
    if isPlayer(cid) then
                update = addEvent(updateMH, otswe_updatetime*1000, cid)
    end
    if tfs_version == true then
		doPlayerSendCancel(cid, "Your Currently Health Is: "..getCreatureHealth(cid).."/"..getCreatureMaxHealth(cid).." And Your Currently Mana Is: "..getCreatureMana(cid).."/"..getCreatureMaxMana(cid)..".")
		else
		doPlayerSendCancel(cid, "Your Currently Health Is: "..getPlayerHealth(cid).."/"..getPlayerMaxHealth(cid).." And Your Currently Mana Is: "..getPlayerMana(cid).."/"..getPlayerMaxMana(cid)..".")
		end
	return true
end
 
function onLogin(cid)
	if isPlayer(cid) then
		update = addEvent(updateMH, 1*1, cid)
		return true
	end
end
 
function onLogout(cid)
	if isPlayer(cid) then
		stopEvent(update)
		return true
	end
end
 
Back
Top