• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code [Solved] url_open bug in GameMaker 2

R

RATInteractive

Guest
when trying this

url_open( 'http://yoyogames.com' );

the forward slash will comment out the rest of the code, which destroys the line.

Anyone else facing this?


[Incorrect layout in GM2 Docs, Fix Maybe?]
 
Last edited by a moderator:

Nocturne

Friendly Tyrant
Forum Staff
Admin
Moderator
It's a string, so either use string literals or the correct escape character.

Code:
url_open(@"http://yoyogames.com");
 

rIKmAN

Member
This didn't work. The Gamemaker 2 docs even say to do it like the above which is broken.
It works fine with double quotes, I've just tried it.
Code:
url_open("http://yoyogames.com");
The docs are more than likely copy/pasted from the GMS1 manual without being tested which is why it shows single quotes.
 
R

RATInteractive

Guest
It works fine with double quotes, I've just tried it.
Code:
url_open("http://yoyogames.com");
The docs are more than likely copy/pasted from the GMS1 manual without being tested which is why it shows single quotes.
I tried this but it did nothing, will retry
 
R

RATInteractive

Guest
It works fine with double quotes, I've just tried it.
Code:
url_open("http://yoyogames.com");
The docs are more than likely copy/pasted from the GMS1 manual without being tested which is why it shows single quotes.
Update: it works but not inside a gm 'play' window
 
Top