0

I have been having a problem. When I put a double slash in a string with more strings inside, it goes crazy. Take a look. How do I fix this?

Photo:

enter image description here

Idle_Mind
  • 38,363
  • 3
  • 29
  • 40
Llermerr
  • 15
  • 5
  • 3
    Please copy-and-paste the lines of problematic code into the question. It is much easier for you, and it is less likely that vital parts of the code get cropped off in some screen grab. – Andrew Morton Nov 30 '19 at 18:27
  • 1
    Does this answer your question? [How to add double quotes to a string that is inside a variable?](https://stackoverflow.com/questions/3905946/how-to-add-double-quotes-to-a-string-that-is-inside-a-variable) – Andrew Morton Nov 30 '19 at 18:30
  • 2
    The slashes are not the problem. The quote inside a string literal are the problem. – JLRishe Nov 30 '19 at 18:31

1 Answers1

1

You need to escape double quotes inside such a string literal. So:

loadstring("game:HttpGet(\"https://insert/url/here\")");

Without escaping (the \ character) your double quotes inside the string literal say "the string ends here."

Matt U
  • 4,970
  • 9
  • 28