Error ( max line length =500)

Started by BD, Tue 23/04/2019 00:01:40

Previous topic - Next topic

BD

Hello!

I'm a bit puzzled at my error at the moment. I'm using a label to display text when prompted and I'm receiving the 'Line too long (max line length =500) error. Now, the text I'm using is a good chunk ; around 150 , obviously not close to the cap. My script works in other rooms just fine so I'm not sure what the problem is! It's possible I skipped over a post that had this same issue ; if that's the case just point me in the right direction!

I'm using this (lbltext is my label name)
Code: ags
 lbltext.Text="150 crappy words"; 

Khris

You're probably missing a closing quote somewhere in your script, which makes AGS parse the entire rest of it as a single line of text, which produces the error.

BD

Uh oh, turns out I was looking at word count and not a character count.

Sorry for wasting your time on that one  :embarrassed:

Crimson Wizard

BD, if you have a long text line you may assign it in parts:
Code: ags

String s = "long text part 1";
s = s.Append("long text part 2");
s = s.Append("long text part 3");
lbltext.Text = s;

SMF spam blocked by CleanTalk