WoW:API GetCompanionInfo: Difference between revisions

m
Fixed typo in example code.
(add known issue)
m (Fixed typo in example code.)
Line 31: Line 31:
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory -->
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory -->
<!-- begin code -->
<!-- begin code -->
  for i=1,GetNumCompanions("CRITTER"),1 do
  for i=1,GetNumCompanions("CRITTER",1) do
  local creatureID, creatureName, creatureSpellID, icon, issummoned = GetCompanionInfo("CRITTER", i);
  local creatureID, creatureName, creatureSpellID, icon, issummoned = GetCompanionInfo("CRITTER", i);
  ChatFrame1:AddMessage(creatureID .. " " .. creatureSpellID .. " " .. creatureName .. " " .. icon .. " " .. issummoned) end
  ChatFrame1:AddMessage(creatureID .. " " .. creatureSpellID .. " " .. creatureName .. " " .. icon .. " " .. issummoned) end
Anonymous user