WoW:API GetChannelName: Difference between revisions

m
Example had a minor code "flaw"
mNo edit summary
m (Example had a minor code "flaw")
Line 27: Line 27:
  myChannel = 1;
  myChannel = 1;
  id, name = GetChannelName(myChannel);
  id, name = GetChannelName(myChannel);
  if (not id == 0 and name ~= nil) then
  if (id > 0 and name ~= nil) then
   SendChatMessage("This is just a test.", "CHANNEL", nil, myChannel);
   SendChatMessage("This is just a test.", "CHANNEL", nil, id);
  end
  end


Anonymous user