Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-04-05, 10:28 AM   #1
shouryuu
A Chromatic Dragonspawn
 
shouryuu's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 150
I hate lua.

Code:
function GetGuilNumbers()
    numGuildMembers = GetNumGuildMembers();
	for i=1,numGuildMembers do
	name[i], _, _, _, _, _, _, _, _, _= GetGuildRosterInfo(i);
	end
end

function SetTicketNumberToNil()
	for k,v pairs do
		name[k]=name[v]
	end
end

Does the above set the name table's keys as it's values, and it's values as it's keys,making it look like this:
Code:
Keys        Values
name1       1
name2       2
name3       3
.......         ...
.......         ...
nameN       N
Or does it change it to the following
Code:

Keys        Values
name1     name1
name2     name2
name3     name3
.......         ...
.......         ...
nameN       nameN
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » I hate lua.


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