this is the last thing i thought id need help with >.> but I'm having problem with for loops. in specific with variable scope in for loops.
ive tried to include the variable offset 2 seperate ways:
way 1:
for(int y=0 , int offset=0 ; y<=cols ; y++, offset+=rows)
{
for(int x=0 ; x<=rows ; x++)
{
dbSprite(x+offfset,x*32,y*32,1);
}
}
way 2:
int offset=0;
for(int y=0 ; y<=cols ; y++)
{
for(int x=0 ; x<=rows ; x++)
{
dbSprite(x+offfset,x*32,y*32,1);
}
offset+=rows;
}
the first one returns aroudn 6 errors all talking about "int unexpected" and "undeclared "offset""
the second gives 1 error in the X loop for "offset undeclared"
what am I doing wrong?
Your signature has been erased by a mod - please reduce it to 600x120