Page 1 of 1

Another Health Problem

PostPosted: Mon Sep 20, 2010 1:51 am
by PWNED
Hey Everyone!!!

I got another health problem for ya!

first draw actor then:
Code: Select all
erase(0, 0, 0, 1);
for (I=0;I<MAX_HP;I++)
{
    setpen(0, 216, 28, 0, 1);
    moveto(I, 0);
    lineto(I, height-1);
}
for (I2=0:I2<HP*2:I2++);
{
    setpen(255, 0, 0, 0, 1);
    moveto(I2, 0);
    lineto(I2, height-1);
}


then it says :
Error line 8; Expected ;
Error line 9; Expected ;
Error line 14; Expected;

do you know whats wrong?

Re: Another Health Problem

PostPosted: Mon Sep 20, 2010 4:04 am
by Bee-Ant
This is the correct code:
Code: Select all
erase(0, 0, 0, 1);
for (I=0;I<MAX_HP;I++)
{
    setpen(0, 216, 28, 0, 1);
    moveto(I, 0);
    lineto(I, height-1);
}
for (I2=0;I2<HP*2;I2++)
{
    setpen(255, 0, 0, 0, 1);
    moveto(I2, 0);
    lineto(I2, height-1);
}

Re: Another Health Problem

PostPosted: Mon Sep 20, 2010 2:51 pm
by savvy
you used a ; instead of a : :P

Re: Another Health Problem

PostPosted: Mon Sep 20, 2010 5:15 pm
by Bee-Ant
savvy wrote:you used a ; instead of a : :P

He used a : instead of a ;

Re: Another Health Problem

PostPosted: Tue Sep 21, 2010 7:05 am
by savvy
thats what i said...
oh, oops, wrong way round x_x

Re: Another Health Problem

PostPosted: Thu Sep 23, 2010 12:30 pm
by lcl
savvy wrote:thats what i said...
oh, oops, wrong way round x_x


BUT, it wasn't if you meant that Bee-Ant used ; instead of a : :lol: