Code: Select all
int array[2][4][4] = {{{1,2,3,4},{5,6,7,8},{9,10,11,12},{13,14,15,16}},
{{17,18,19,20},{21,22,23,24},{25,26,27,28},{29,30,31,32}}};
Moderator: GZDoom Developers
Code: Select all
int array[2][4][4] = {{{1,2,3,4},{5,6,7,8},{9,10,11,12},{13,14,15,16}},
{{17,18,19,20},{21,22,23,24},{25,26,27,28},{29,30,31,32}}};
Ran ACC from the comand line, copied the output file into the test wad as the BEHAVIOR lump, and still, it won't print anything above array[0][3][3]...Bio Hazard wrote:Try running the script through ACC manually. Maybe DB is messing something up?
Code: Select all
print(d:array[random(0,1)][random(0,3)][random(0,3)]);
Code: Select all
for (int i=0; i<2; i++)
{
for (int x=0; x<4; x++)
{
for (int y=0; y<4; y++)
{
print(d:array[i][x][y]);
delay(35);
}
}
}
Basically what I meant is that this will compile but it shouldn't!Sir_Alien wrote:And Justin, would you mind elaborating on your comment? I'm interested in understanding what you said, but unfortunately English is my only language!
Code: Select all
int arr[3]={3};
Well, here's a place to start:solarsnowfall wrote:I haven't ruled out my meathods of checking the values as the problem either...
Code: Select all
for (int i=0; i<2; i++)
{
for (int x=0; x<4; x++)
{
for (int y=0; y<4; y++)
{
print(s:"["d:i, s:"][", d:x, s:"][", d:y, s:"]: ", d:array[i][x][y]);
}
}
}