Forum

> > CS2D > Scripts > Tibia Error [Hudtext2]
Forums overviewCS2D overview Scripts overviewLog in to reply

English Tibia Error [Hudtext2]

3 replies
To the start Previous 1 Next To the start

old Tibia Error [Hudtext2]

AleDarck
User Off Offline

Quote
Please help me with this error

sys/lua/cs2dtibia/funcions.lua:432: attempt to concatenate local 'text' (a nil value)

old Re: Tibia Error [Hudtext2]

TrialAndError
User Off Offline

Quote
1
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
--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)

old Re: Tibia Error [Hudtext2]

AleDarck
User Off Offline

Quote
This is the code used in functions.lua

1
2
3
function hudtxt2(id, txtid, text, colour, x, y, align)
     parse("hudtxt2 " .. id .. " " .. txtid .. " \"©" .. tostring(colour) .. text .. "\" " .. x .. " " .. y .. " " .. align)
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview