15.11.2013, 14:14
I don't really know if it's an unknow bug, but I just found it so I wanna share and get your opinion guys
if you compile that on -d 0, it won't break by runtime error on right place
that was my console output:
and if you compile that with -d 2, it breaks by runtime error on right place:
PHP код:
#include <a_samp>
new TesteVar[5][3];
public OnGameModeInit()
{
for(new i = 0; i < 100; i++)
printf("TesteVar[%d][0] = %d", i, TesteVar[i][0]);
}
that was my console output:
Quote:
[15/11/13 13:11:25] TesteVar[0][0] = 0 [15/11/13 13:11:25] TesteVar[1][0] = 0 [15/11/13 13:11:25] TesteVar[2][0] = 0 [15/11/13 13:11:25] TesteVar[3][0] = 0 [15/11/13 13:11:25] TesteVar[4][0] = 0 [15/11/13 13:11:25] TesteVar[5][0] = 0 [15/11/13 13:11:25] TesteVar[6][0] = 0 [15/11/13 13:11:25] TesteVar[7][0] = 0 [15/11/13 13:11:25] TesteVar[8][0] = 0 [15/11/13 13:11:25] TesteVar[9][0] = 0 [15/11/13 13:11:25] TesteVar[10][0] = 0 [15/11/13 13:11:25] TesteVar[11][0] = 0 [15/11/13 13:11:25] TesteVar[12][0] = 0 [15/11/13 13:11:25] TesteVar[13][0] = 0 [15/11/13 13:11:25] TesteVar[14][0] = 0 [15/11/13 13:11:25] TesteVar[15][0] = 0 [15/11/13 13:11:25] TesteVar[16][0] = 0 [15/11/13 13:11:25] TesteVar[17][0] = 0 [15/11/13 13:11:25] TesteVar[18][0] = 0 [15/11/13 13:11:25] TesteVar[19][0] = 0 [15/11/13 13:11:25] TesteVar[20][0] = 0 [15/11/13 13:11:25] TesteVar[21][0] = 0 [15/11/13 13:11:25] TesteVar[22][0] = 0 [15/11/13 13:11:25] TesteVar[23][0] = 0 [15/11/13 13:11:25] TesteVar[24][0] = 0 [15/11/13 13:11:25] TesteVar[25][0] = 0 [15/11/13 13:11:25] TesteVar[26][0] = 0 [15/11/13 13:11:25] TesteVar[27][0] = 0 [15/11/13 13:11:25] TesteVar[28][0] = 0 [15/11/13 13:11:25] TesteVar[29][0] = 1677721600 [15/11/13 13:11:25] TesteVar[30][0] = 0 [15/11/13 13:11:25] TesteVar[31][0] = 0 [15/11/13 13:11:25] TesteVar[32][0] = 0 [15/11/13 13:11:25] TesteVar[33][0] = 0 [15/11/13 13:11:25] TesteVar[34][0] = 0 [15/11/13 13:11:25] TesteVar[35][0] = 0 [15/11/13 13:11:25] TesteVar[36][0] = 0 [15/11/13 13:11:25] TesteVar[37][0] = 0 [15/11/13 13:11:25] TesteVar[38][0] = 0 [15/11/13 13:11:25] TesteVar[39][0] = 0 [15/11/13 13:11:25] TesteVar[40][0] = 0 |
and if you compile that with -d 2, it breaks by runtime error on right place:
Quote:
[15/11/13 13:14:13] TesteVar[0][0] = 0 [15/11/13 13:14:13] TesteVar[1][0] = 0 [15/11/13 13:14:13] TesteVar[2][0] = 0 [15/11/13 13:14:13] TesteVar[3][0] = 0 [15/11/13 13:14:13] TesteVar[4][0] = 0 |