Hey I have a list setup like
combat = {"hello", "goodbye", "good morning", "that isn't going ot happen"}
so if I do a 'for' to make it send it, it'll be like
for k, v in pairs(combat) do
send(v)
end
but it'll send them one at once, Does anyone know a way to send them all at once so it'll be like
hellogoodbyegood morningthat isn't going ot happen ...
When I use echo(v) it shows them all together like I want but when using send, it sends them one at once, I guess thats because the echo doesn't line separate like send does.. any ideas please?
Stringlist help
Re: Stringlist help
(Untested)
If you want to put a space between each element of combat, you can do something like the following (again, untested):
Code: Select all
combat = {"hello", "goodbye", "good morning", "that isn't going ot happen"}
text = ""
for k, v in ipairs(combat) do
text = text .. v
end
send(text)
Code: Select all
combat = {"hello", "goodbye", "good morning", "that isn't going ot happen"}
text = ""
for k, v in ipairs(combat) do
text = text .. v
if k < #combat then
text = text .. " "
end
end
send(text)
Re: Stringlist help
That was first thing I tried, it wouldn't work in a send thingAkaya wrote:
Thanks tho the first stuff helped