Some code problems...
Posted: Wed Apr 22, 2009 12:55 am
okay i have this code, and it's not working... i'm not sure why.. it's a simple code...
it says expected ; on line 27 and 37...hmm?
- Code: Select all
if(Turn==1)
{
if(A1.animpos==0)
{
if(A2.animpos==0)
{
if(A3.animpos==0)
{
if(B1.animpos==0)
{
if(B2.animpos==0)
{
if(B3.animpos==0)
{
if(C1.animpos==0)
{
if(C2.animpos==0)
{
if(C3.animpos==0)
{
int n;
n = rand(9)
if(n==0)A1.animpos=2; //line 27, one problem
if(n==1)A2.animpos=2;
if(n==2)A3.animpos=2;
if(n==3)B1.animpos=2;
if(n==4)B2.animpos=2;
if(n==5)B3.animpos=2;
if(n==6)C1.animpos=2;
if(n==7)C2.animpos=2;
if(n==8)C3.animpos=2;
}
if(C3.animpos==1)
{
int n;
n = rand(8)
if(n==0)A1.animpos=2; //line37 the next.
if(n==1)A2.animpos=2;
if(n==2)A3.animpos=2;
if(n==3)B1.animpos=2;
if(n==4)B2.animpos=2;
if(n==5)B3.animpos=2;
if(n==6)C1.animpos=2;
if(n==7)C2.animpos=2;
}
}
}
}
}
}
}
}
}
}
it says expected ; on line 27 and 37...hmm?