Navigation menu

WoW:API GetNumGuildMembers: Difference between revisions

Jump to navigation Jump to search
typo. was online instead of offline
({{wowapi}}, format, example)
(typo. was online instead of offline)
Line 11: Line 11:
==Example==
==Example==
  local numOnline, numTotal = (GetNumGuildMembers()), (GetNumGuildMembers(true));
  local numOnline, numTotal = (GetNumGuildMembers()), (GetNumGuildMembers(true));
  DEFAULT_CHAT_FRAME:AddMessage(numTotal .. " guild members: " .. numOnline .. " online, " .. (numTotal - numOnline) .. " online.");
  DEFAULT_CHAT_FRAME:AddMessage(numTotal .. " guild members: " .. numOnline .. " online, " .. (numTotal - numOnline) .. " offline.");
===Result===
===Result===
Displays the number of people online, offline, and the total headcount of your guild in the default chat frame.
Displays the number of people online, offline, and the total headcount of your guild in the default chat frame.
Anonymous user