31.01.2015, 06:14
First off, my code:
This should set each 1x1 from -2000, -2000 through 2000, 2000 to 500.0. Then it should save the map.
It does set the heights to 500.0, but it does not create the file. What am I doing wrong here?
(Ps. It does create the file, but the file is only 0 kb, not even one character inside)
pawn Код:
MapAndreas_Init(MAP_ANDREAS_MODE_MINIMAL, "scriptfiles/ATD.hmap");
for(new x=-2000; x<2000; x++) for(new y=-2000; y<2000; y++)
{
new Float:z;
MapAndreas_FindZ_For2DCoord(float(x), float(y), z);
if(z != 500.0)
{
z = 500.0;
MapAndreas_SetZ_For2DCoord(float(x), float(y), z);
}
printf("%0.1f, %0.1f : %0.1f", float(x), float(y), z);
}
MapAndreas_SaveCurrentHMap("scriptfiles/ATD.hmap");
It does set the heights to 500.0, but it does not create the file. What am I doing wrong here?
(Ps. It does create the file, but the file is only 0 kb, not even one character inside)