MapAndreas, Save HMap not working!
#1

First off, my code:
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");
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)
Reply


Messages In This Thread
MapAndreas, Save HMap not working! - by Crayder - 31.01.2015, 06:14
Re: MapAndreas, Save HMap not working! - by DRIFT_HUNTER - 31.01.2015, 06:28
Re: MapAndreas, Save HMap not working! - by Crayder - 31.01.2015, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)