Thread Tools Display Modes
02-06-08, 06:23 PM   #1
kcdclan
A Murloc Raider
Join Date: May 2007
Posts: 7
Arrays? Trying to invite members to party.

I'm really just trying to understand this.
It's comming a bit more complicated then I though.
I'm so use to arrays and stuff.
I think this is using chunks.
I don't understand how it works at all.
Code:
 for i=0, players_total do                 
	if player.m_name == players_invited[i] then
		DEFAULT_CHAT_FRAME:AddMessage(player.m_level..": "..player.m_name,1,1,0,1);      
	else
		players_invited = {player.m_name};
		DEFAULT_CHAT_FRAME:AddMessage(player.m_level..": "..player.m_name,0,1,0,1);      
		InviteUnit(player.m_name);
	end
end
I am Trying to chck the list of invited player.
Don't invite unless not invited before.(So I dont invite them over and over every time.)
Then add to list once invited.

Last edited by kcdclan : 02-06-08 at 06:45 PM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Arrays? Trying to invite members to party.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off