wrong printf output
#1

I am trying to get gangzones to show correctly but printing the coords gives me a wrong output:

Код:
[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
This is the array:
Код:
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]);
	}
I am confused why it only prints the last two coords correctly..
Reply


Messages In This Thread
wrong printf output - by PizzaPuntjes - 24.07.2015, 15:06
Re: wrong printf output - by liquor - 24.07.2015, 15:16
Re: wrong printf output - by PizzaPuntjes - 24.07.2015, 15:18
Re: wrong printf output - by liquor - 24.07.2015, 15:24
Re: wrong printf output - by xVIP3Rx - 24.07.2015, 15:24
Re: wrong printf output - by PizzaPuntjes - 24.07.2015, 15:28
Re: wrong printf output - by xVIP3Rx - 24.07.2015, 15:37

Forum Jump:


Users browsing this thread: 1 Guest(s)