Ok so im trying to declare arrays inside a case select, but for some reason im getting just error after error for the array for itself.
void OpenSc();
void Start();
void GameArea(int[] [TILEr],int);
int objects();
bool KeysPressed();
void update(int);
void moveTs(int);
void checkWalls(int);
int Playpeice[4][4];// (only declared to be looked as a global varable to force the select/case to let me use the array)
int objects()
{
int MAX = 700;
int x = dbRND(MAX);
//int Playpeice[4][4];
switch (MAX)
{
case 100://LINE
int Playpeice[4][4] =
{
{NONE,NONE,1,NONE},
{NONE,NONE,1,NONE},
{NONE,NONE,1,NONE},
{NONE,NONE,1,NONE},
};gd
break;
case 200:// T
int Playpeice[4][4]=
{
{NONE,1,1,1},
{NONE,NONE,1,NONE},
{NONE,NONE,NONE,NONE},
{NONE,NONE,NONE,NONE},
};
break;
case 300: // SQUARE
int Playpeice[4][4]=
{
{NONE,NONE,NONE,NONE},
{NONE,1,1,NONE},
{NONE,1,1,NONE},
{NONE,NONE,NONE,NONE},
};
break;
case 400: // S GOING RIGHT
int Playpeice[4][4] =
{
{NONE,NONE,NONE,NONE},
{NONE,1,NONE,NONE},
{NONE,1,1,NONE},
{NONE,NONE,1,NONE},
};
break;
case 500:// S GOING LEFT
int Playpeice[4][4] =
{
{NONE,NONE,1,NONE},
{NONE,1,1,NONE},
{NONE,1,NONE,NONE},
{NONE,NONE,NONE,NONE},
};
break;
case 600:
break;
case 700:
break;
default:
dbPrint("no..");
}
return Playpeice[][];
}// ending of makeing items/objects appear at random places with in a range.
I only want to