• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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 10
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