Another Health Problem

Non-platform specific questions.

Another Health Problem

Postby PWNED » Mon Sep 20, 2010 1:51 am

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?
PWNED
 
Posts: 16
Joined: Wed Jul 21, 2010 10:17 pm
Score: 0 Give a positive score

Re: Another Health Problem

Postby Bee-Ant » Mon Sep 20, 2010 4:04 am

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);
}
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Another Health Problem

Postby savvy » Mon Sep 20, 2010 2:51 pm

you used a ; instead of a : :P
--> For my help, i ask for a simple +1 if it helps! ^-^
--> I dont code, I type art which you dont understand.
--> I keep winning the 3D model challenge at college, teacher says: "you keep winning im not giving you prizes".
User avatar
savvy
 
Posts: 494
Joined: Wed Jun 03, 2009 11:55 am
Location: England
Score: 44 Give a positive score

Re: Another Health Problem

Postby Bee-Ant » Mon Sep 20, 2010 5:15 pm

savvy wrote:you used a ; instead of a : :P

He used a : instead of a ;
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Another Health Problem

Postby savvy » Tue Sep 21, 2010 7:05 am

thats what i said...
oh, oops, wrong way round x_x
--> For my help, i ask for a simple +1 if it helps! ^-^
--> I dont code, I type art which you dont understand.
--> I keep winning the 3D model challenge at college, teacher says: "you keep winning im not giving you prizes".
User avatar
savvy
 
Posts: 494
Joined: Wed Jun 03, 2009 11:55 am
Location: England
Score: 44 Give a positive score

Re: Another Health Problem

Postby lcl » Thu Sep 23, 2010 12:30 pm

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:
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest