why cant you have each word(characters seperated by space) returned seperatly?
what are you trying to do
I guess you could do
local thiscommandarray =GetCommand()
for key, value in thiscommandarray do
if(not thiscommandstring)and (value) then thiscommandstring = value end
elseif(thiscommandstring) and (value) then thiscommandstring = thiscommandstring.." "..value end
end
DEFAULT_CHAT_FRAME:AddMessage(thiscommandstring)
that should do what you want...dunno if its the best way though
|