View Single Post
10-21-09, 11:08 PM   #10
wurmfood
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 122
Some notes about the returned values from the API:

In some cases (not all, it seems), the data returned is in an inconsistent format.

Some portion of the data will take the form (when viewing the saved info):

{
true,
nil,
nil,
true,
}

while the rest will appear as:

{
[12345] = true,
[12857] = true,
[2345] = true,
[87432] = true,
}

In the first, you will have both "true" and "nil" as values and the keys (questids) are sequential. In the second, the keys are random and the value will always be true. It's easy to handle, but it helps to know it's there.
  Reply With Quote