TheMagician
Member
In GMS 1.4 you could span a String argument over multiple lines which enabled nice things like creating a map using JSON formatting:
Now in GMS 2 there are multiple problems:
Code:
map_game = ds_map_create();
map_game = json_decode('
{
"Player":
{
"x":0,
"y":0,
"Inventory":
{
"0":"Rope",
"1":"Money",
"2":"Flower"
}
}
}
');
- You can't use ' anymore to define a string, only " works
- If you use more than one line for the string you get the error "Unterminated String Literal"