CreateDynamicPolygon problem
#4

well i've tried to do in this way quickly

pawn Code:
#define points_size (26+1)// i tried to do it manualy beacuse the array has known array size
    new Float:vertexai[ ][ ] =
    {
        // coords
        {-3264.850341, 1881.825683,
        -3298.238769, -3066.096191,
        760.000000, -2860.000000,
        -52.000000, -1894.000000,
         24.250000, -1634.015625,
         65.000000, -1411.092285,
         33.000000, -1249.550781,
        107.000000, -1158.429687,
         47.000000, -1098.135498,
        102.000000, -920.469970,
        -57.000000, -902.997314,
        -124.000000, -857.887939,
        -181.000000, -784.712402,
        -293.000000, -350.712402,
        -776.000000, -323.554443,
        -1042.000000, -318.570068,
        -1009.000000, 265.434570,
        -841.000000, 461.434570,
        -1058.078125, 670.094238,
        -1561.000000, 1582.991821,
        -3264.850341, 1881.825683
        },
        // another coords
        { -2264.850341, 881.825683,
        -2298.238769, -2066.096191,
        760.000000, -1860.000000,
        -52.000000, -894.000000,
        -2264.850341, 881.825683
        }
    };
// Loading:

    new
        polygons[ 2 ]
    ;

    for( new i; i < sizeof(vertexai); i++ )
    {
        polygons[ i ] = CreateDynamicPolygon(vertexai [ i ], vertexai[ i ][0], vertexai[ i ][1], points_size);
    }
P.S not tested
Reply


Messages In This Thread
CreateDynamicPolygon problem - by zgintasz - 02.04.2012, 16:39
Re: CreateDynamicPolygon problem - by TheArcher - 02.04.2012, 16:52
Re: CreateDynamicPolygon problem - by zgintasz - 02.04.2012, 17:21
Re: CreateDynamicPolygon problem - by TheArcher - 02.04.2012, 18:57

Forum Jump:


Users browsing this thread: 2 Guest(s)