Steeveeo
Senior Member

Posts: 1011
Registered: 09-06 |
hmm, I'd say try removing the semicolon after the if statement.
This one works fine until I add a semicolon after my if statement.
code:
int blastshielddown = 0;
script 3 (void) //Big door
{
if(blastshielddown == 0)
{
acs_execute(4,0,0,0,0);
}
else
{
acs_execute(5,0,0,0,0);
}
delay(175);
}
Compiles fine
code:
int blastshielddown = 0;
script 3 (void) //Big door
{
if(blastshielddown == 0);
{
acs_execute(4,0,0,0,0);
}
else
{
acs_execute(5,0,0,0,0);
}
delay(175);
}
Does not, and returns an invalid statement error.
|