sys/lua/cs2dtibia/funcions.lua:432: attempt to concatenate local 'text' (a nil value)
Forum
Scripts
Tibia Error [Hudtext2]
Tibia Error [Hudtext2]
3 replies
1

sys/lua/cs2dtibia/funcions.lua:432: attempt to concatenate local 'text' (a nil value)
1
2
3
2
3
function hudtxt2(id, txtid, text, colour, x, y, align)
	parse("hudtxt2 " .. id .. " " .. txtid .. " \"©" .. tostring(colour) .. text .. "\" " .. x .. " " .. y .. " " .. align)
end
You need to use it like this:
1
2
3
4
5
2
3
4
5
--hudtxt2(id, 0-49, "Your text in string", RGB, X POS, y POS, 0-2) --Example: hudtxt2(id,0,"Hello World",255255255,320,240,1)
1
2
3
2
3
function hudtxt2(id, txtid, text, colour, x, y, align)
parse("hudtxt2 " .. id .. " " .. txtid .. " \"©" .. tostring(colour) .. text .. "\" " .. x .. " " .. y .. " " .. align)
end
1

Offline