View Single Post
01-17-11, 06:48 AM   #4
Tomate
A Murloc Raider
 
Tomate's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 5
Originally Posted by Alternator View Post
I can't directly answer your question - but I have seen in some cases the api will return out of date info.

It's possible that when clicking the achieve in the default ui, a particular function is run that has a side effect of telling the client to refresh/retrieve data, which is then exposed by another function which itself is perhaps lazy in retrieving this info (perhaps for perf reasons)... But really it's only a hunch based on what you've wrote.
Thanks for your answer, maybe you right and it is an old version of the function who is called, but I can not see how I can force it to retrieved the good value.

Originally Posted by Dridzt View Post
Code:
local criteriaString, criteriaType, criteriaCompleted, quantity, totalQuantity, name, flags, assetID, quantityString, criteriaID, eligible = GetAchievementCriteriaInfo(achID, critID);
is the full function prototype.

Perharps the answer is in the 2 returns you are missing.
Thanks, I hardly doubt but maybe. I will try to see what is in those two returns values.
[EDIT]: I have try to add those two values and look what is in it and It does "nothing". (they can't help me).

Last edited by Tomate : 01-17-11 at 07:21 AM.
  Reply With Quote