MoneyText:SetText(gold silver copper);
how do i make this work? gold,silver n copper are all strings and i want them to be outwritten..
i've tried to combine them with AND,&,+ and "," but none works...
plz plz help :) (Using this for scripts to World of Warcraft)
ps. How do I also put in a \n between every string? ds.
QuoteOriginally posted by neonB
MoneyText:SetText(gold silver copper);
how do i make this work? gold,silver n copper are all strings and i want them to be outwritten..
i've tried to combine them with AND,&,+ and "," but none works...
maybe try MoneyText:SetText(gold.." ".. silver.." "..copper)
You use '..' (double dot) to concate two strings, if that is what you mean.
QuoteOriginally posted by neonB
ps. How do I also put in a \n between every string? ds.
just "\r\n" if "\n" doesn't work ...
i tried:
gold.."\n".. silver.."\n"..copper
and
gold.."\r\n".. silver.."\r\n"..copper
but it didnt work.. :S in wow the text became:
10 (the gold strings value)...
:S
can you post the part of the script that produces the gold, silver, and copper variable values ?
cause it should be easier to understand what the problem is through there ..
are you sure the money text can be over more then one line?