View Single Post
11-03-05, 03:20 PM   #2
noraj
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Jul 2005
Posts: 102
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
  Reply With Quote