[SOLVED]Add a better error message using Label and ....

Just starting out? Need help? Post your questions and find answers here.
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

[SOLVED]Add a better error message using Label and ....

Post by IceSoft »

Get only a "Line <n>: Syntax error" message using Label and IncludeBinary on the same line.

At least a "better" error message like "Line <n>: Label: 'MapLabel:' has to written on an own line."

or another idea:
Let it compile. Source code will be smaller and "sweeter"

Code: Select all

  DataSection
    MapLabel:IncludeBinary "Data\map.data"
  EndDataSection 
Last edited by IceSoft on Wed Aug 16, 2017 7:24 am, edited 1 time in total.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
Demivec
Addict
Addict
Posts: 4086
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Add a better error message using Label and IncludeBinary

Post by Demivec »

I think the error message is correct. You've combined two separate statements or lines together.

If you want them on the same line they need to be separated by a colon like so:

Code: Select all

  DataSection
    MapLabel: :IncludeBinary "Data\map.data"
  EndDataSection 
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: [SOLVED]Add a better error message using Label and ....

Post by IceSoft »

Thanks. That's ok for me.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Post Reply