Anonymous user
Scripting, Code & Interaction: Difference between revisions
Jump to navigation
Jump to search
→Error: "(line xyz): incorrectly terminated character constant": added new String note
*>SSH (→Error: "(line xyz): incorrectly terminated character constant": added new String note) |
|||
Line 171: | Line 171: | ||
''Every time I run my game I get the error message "Error (line xyz): incorrectly terminated character constant". I checked line XYZ and I can't see a thing wrong with the script. I don't use any foreign characters using ASCII value above 128. What's wrong?'' | ''Every time I run my game I get the error message "Error (line xyz): incorrectly terminated character constant". I checked line XYZ and I can't see a thing wrong with the script. I don't use any foreign characters using ASCII value above 128. What's wrong?'' | ||
Check to see that the text in your command on that line (or near that line) does not use more than 200 characters at a time in a string. Examples include '''Display()''' commands and derivatives thereof. Split long lines up into multple lines. | Check to see that the text in your command on that line (or near that line) does not use more than 200 characters at a time in a string. Examples include '''Display()''' commands and derivatives thereof. Split long lines up into multple lines. | ||
AGS 2.71 has support for longer strings using the '''String''' datatype, but some parts of AGS still have the 200 character limit, so beware. | |||
==Slowing down your loops== | ==Slowing down your loops== |