   invalid types unknown type[int]' for array subscript
  I keep getting this error and I can't figure it out. I'm taking my pong game from c to c++ and am probably missing something any help would be awesome.invalid types `<unknown type>[int]' for array subscript struct paddleTag {    int x, y;    int dir;    int color, score;} paddle[2];void drawClass::draw(int num, int objtype, int color) {if(objtype == 1){    x = paddle[num].x;    y = paddle[num].y;    rectfill(buffer, x - PADDLEW, y - PADDLEH, x + PADDLEW, y + PADDLEH, color);}else if (objtype == 2){    if (ball.status == 1)    {   x = ball.x;   y = ball.y;   rectfill(buffer, x - BALLW, y + BALLH, x + BALLW, y - BALLH, color);    }}}ERROR: 12 invalid types `<unknown type>[int]' for array subscript 
  What line does that error occur on? It looks fine to me...   ;Quote:Original post by Evil SteveWhat line does that error occur on? It looks fine to me...Any lines with the data struct.So anything with paddle[num].___I also have a ball array and it does it any time there is a call to ball[num].____   ;  Okay I fixed all that, but now im getting a ton of multiple definition errors. I'm confused.. haha, sorry guys. Source 