24.07.2015, 15:06
I am trying to get gangzones to show correctly but printing the coords gives me a wrong output:
This is the array:
I am confused why it only prints the last two coords correctly..
Код:
[17:05:13] 0: 0.0000, 0.0000, -467.1149, 0.0000 [17:05:13] 1: 0.0000, 0.0000, -11.6778, 23.3557 [17:05:13] 2: 0.0000, 0.0000, 58.3893, 93.4229
Код:
new hq_cds[][coords] = { {-548.8602, -58.38938, -467.115, 0.0}, {-81.74512, -23.35575, -11.67788, 23.35575}, {-11.67788, 46.7115, 58.38938, 93.423} }; for(new xz = 0; xz < sizeof(hq_cds); xz ++) { printf("%d: %.4f, %.4f, %.4f, %.4f", hq[xz][zone], hq_cds[xz][minXx], hq_cds[xz][minYy], hq_cds[xz][maxXx], hq_cds[xz][maxYy]); }