1. Macro help - guild invites

    Hello,

    I am receiving the below error when I attempt to run a script in chat. I do not think it's working as a macro button either.

    -----------------------------------------------------------------------------------------------------------------------------------
    Date: 2023-07-19 19:54:55
    ID: 1
    Error occured in: Global
    Count: 1
    Message: [string "n=GetNum!@#$%sults(); i=1; while(i<n+1) do c,g=GetWhoInfo(i); i..."] line 1:
    unexpected symbol near '!'
    Debug:
    (tail call): ?
    [C]: ?
    [C]: RunScript()
    ..FrameXMLChatFrame.lua:1996: value()
    ..FrameXMLChatFrame.lua:4070: ChatEdit_ParseText()
    ..FrameXMLChatFrame.lua:3660: ChatEdit_SendText()
    ..FrameXMLChatFrame.lua:3698: ChatEdit_OnEnterPressed()
    [string "*:OnEnterPressed"]:1:
    [string "*:OnEnterPressed"]:1

    -----------------------------------------------------------------------------------------------------------------------------------


    The code is as follows:

    -----------------------------------------------------------------------------------------------------------------------------------
    /script n=GetNum!@#$%sults(); i=1; while(i<n+1) do c,g=GetWhoInfo(i); if(g=="") then SendChatMessage("Hello "...c..."! <Syndicate Alpha> is now recruiting PvP players!, Join now!","WHISPER","COMMON",c); GuildInvite(c); end; i=i+1; end;
    -----------------------------------------------------------------------------------------------------------------------------------

    Any assistance greatly appreciated
    TIA

  2. GetNum!@#$%sults is not the name of a function... The real name is GetNumWhoResults but it gets censored because of the s****horpe problem

    /script n=GetNumWhoResults(); i=1; while(i<n+1) do c,g=GetWhoInfo(i); if(g=="") then SendChatMessage("Hello "...c..."! <Syndicate Alpha> is now recruiting PvP players!, Join now!","WHISPER","COMMON",c); GuildInvite(c); end; i=i+1; end;

  3. . .
    Edited: January 1, 2024

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •