DataSection Question: Syntax error (not allowed to write in 'one' line?)

Just starting out? Need help? Post your questions and find answers here.
DrShrek
New User
New User
Posts: 7
Joined: Thu Jan 26, 2023 8:43 pm

DataSection Question: Syntax error (not allowed to write in 'one' line?)

Post by DrShrek »

Code: Select all

 DataSection
   level1: 
   IncludeBinary "sprites\level\level_1.jpg"
   level2: IncludeBinary "sprites\level\level_2.jpg"     <<<<<<<<<<<< Syntax error (not allowed to write in 'one' line?)
BarryG
Addict
Addict
Posts: 4128
Joined: Thu Apr 18, 2019 8:17 am

Re: DataSection Question: Syntax error (not allowed to write in 'one' line?)

Post by BarryG »

Not a bug. You've got two items on one line with no colon separating them (a label and a command). Do this:

Code: Select all

level2: : IncludeBinary "sprites\level\level_2.jpg"
Post Reply