I have no idea why this doesn't work, but I'm angry :-): for(carnum=0;carnum<8;carnum++) for(y=0;y<carsize[carnum*2];y++) for(x=0;x<carsize[carnum*1];x++) car[x+(y*carsize[carnum*1])][carnum]= sprites[x+xoffset+(y+yoffset)*spri\tewidth]; It says: invalid operands to binary * So what's the matter?