• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Jass Web Links in Strings

Status
Not open for further replies.
Level 4
Joined
Jul 31, 2019
Messages
19
Hey guys,

Posting a link in a string gives a compile error "Unexpected colon".

Any idea what causes that?

Removing the https:// fixes the issue apparently.

Example:
Code:
local string Changes_Desc = "Read the Patch Notes on Discord:|n |cffffff73https://discord.gg/*LINK*|r"
 
Level 11
Joined
Dec 11, 2009
Messages
234
You can just do that:
JASS:
local string Changes_Desc = "Read the Patch Notes on Discord:|n |cffffff73https:/"+"/discord.gg/*LINK*|r"

Looks like a bug (could be old, I'm not sure).
JASS:
function Bullshit takes nothing returns nothing
    local string s1 = "//"        // <--- this line throws an error
    local string s2 = "/"
    if s2 == "//" then
        call DoNothing()
    endif
    call BJDebugMsg("//")
endfunction
 
Status
Not open for further replies.
Top