Forum

> > CS2D > Scripts > Tibia Error [Hudtext2]
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Tibia Error [Hudtext2]

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Tibia Error [Hudtext2]

AleDarck
User Off Offline

Zitieren
Please help me with this error

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

alt Re: Tibia Error [Hudtext2]

TrialAndError
User Off Offline

Zitieren
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)

alt Re: Tibia Error [Hudtext2]

AleDarck
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht