|
2 registered members (Grant, AndrewAMD),
911
guests, and 9
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Why does this program not work?
#270714
06/09/09 14:02
06/09/09 14:02
|
Joined: Jun 2009
Posts: 148
gamingfan101
OP
Member
|
OP
Member
Joined: Jun 2009
Posts: 148
|
Im trying to create an image that has my forest background (this image works fine) and my robot in the foreground. But the engine says there is a problem with line 18 (LDDScreenShot1) Thanks!
//////////////////////////////////////////////////////////////////// #include <acknex.h> #include <default.c>
////////////////////////////////////////////////////////////////////
BMAP* bmforest = "forest.bmp"; // my first bmap
PANEL* first_pan = // my first panel { pos_x = 100; pos_y = 0; layer = 1; bmap = bmforest; flags = OVERLAY | VISIBLE; } BMAP* pngRobot = "LDDScreenShot1.PNG" { pos_x = 100; pos_y = 50; layer = 2; bmap = pngRobot; flags = OVERLAY | VISIBLE; }
/////////////////////////////////////////////////////////////////////
function main() { video_mode = 7; screen_color.green = 75 ; }
Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
|
|
|
Re: Why does this program not work?
[Re: gamingfan101]
#270728
06/09/09 15:13
06/09/09 15:13
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
you are missing a semicolon BMAP* pngRobot = "LDDScreenShot1.PNG" replace with BMAP* pngRobot = "LDDScreenShot1.PNG";
that's all
Last edited by croman; 06/09/09 15:13.
Ubi bene, ibi Patria.
|
|
|
Re: Why does this program not work?
[Re: croman]
#270730
06/09/09 15:31
06/09/09 15:31
|
Joined: Jun 2009
Posts: 148
gamingfan101
OP
Member
|
OP
Member
Joined: Jun 2009
Posts: 148
|
ok, i added the semicolon, but now it says that the keyword BMAP* is unknown, then it says that bitmap unknown pngRobot.
Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
|
|
|
Re: Why does this program not work?
[Re: gamingfan101]
#270731
06/09/09 15:34
06/09/09 15:34
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
BMAP* bmforest = "forest.bmp"; // my first bmap
PANEL* first_pan = // my first panel
{
pos_x = 100;
pos_y = 0;
layer = 1;
bmap = bmforest;
flags = OVERLAY | VISIBLE;
}
BMAP* pngRobot = "LDDScreenShot1.png";
PANEL* second_panel =
{
pos_x = 100;
pos_y = 50;
layer = 2;
bmap = pngRobot;
flags = OVERLAY | VISIBLE;
}
try with this...
Ubi bene, ibi Patria.
|
|
|
Re: Why does this program not work?
[Re: croman]
#270732
06/09/09 15:44
06/09/09 15:44
|
Joined: Jun 2009
Posts: 148
gamingfan101
OP
Member
|
OP
Member
Joined: Jun 2009
Posts: 148
|
Thanks! This one works! Im new to all this so i dont really understand all of this. I just took the code from workshop 04 and used it.
Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
|
|
|
Re: Why does this program not work?
[Re: gamingfan101]
#270736
06/09/09 15:52
06/09/09 15:52
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
ok, just make sure to read through the code twice before posting it here  look for missing semicolons and wrong syntaxes
Ubi bene, ibi Patria.
|
|
|
|