Navigation menu

WoW:API GetNumWhoResults: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 33: Line 33:
  local numWhos, totalCount = GetNumWhoResults();  
  local numWhos, totalCount = GetNumWhoResults();  
  DEFAULT_CHAT_FRAME:AddMessage('numWhos = '..tostring(numWhos).. ' totalCount = '..tostring(totalCount));
  DEFAULT_CHAT_FRAME:AddMessage('numWhos = '..tostring(numWhos).. ' totalCount = '..tostring(totalCount));
----
__NOTOC__
Comment by [[user:hudlee|hudlee]]
After you call [[API SendWho|SendWho]]("filter"); you have to wait for a WHO_LIST_UPDATE [[Events %28API%29 | event]] before the results are available. So you'll need to call [[API GetNumWhoResults|GetNumWhoResults]](); from an [[Events %28API%29 | event]] handler.
Anonymous user