2019-05-27, 04:52 PM
Here is an array containing points for a polygon:
Here is the code for making the polygon (s)
But im getting this error:?
Any way how to fix this?
Code:
new Float: ZombieZone [MAX_ZONES][] = {
{ 2595.0,52.0,2594.0,31.0,2569.0,31.0,2568.0,-16.0,2524.0,-19.0,2523.0,-48.0,2454.0,-50.0,2453.0,-75.0,2356.0,-76.0,2355.0,-106.0,
2332.0,-107.0,2333.0,-145.0,2234.0,-145.0,2234.0,-108.0,2213.0,-100.0,2176.0,-101.0,2175.0,-25.0,2176.0,52.0,2183.0,117.0,2220.0,149.0,
2221.0,191.0,2271.0,190.0,2272.0,183.0,2296.0,183.0,2304.0,203.0,2323.0,222.0,2357.0,222.0,2383.0,203.0,2408.0,133.0,2447.0,147.0,
2548.0,147.0,2571.0,102.0,2595.0,52.0 },
{ 1229.0,113.0,1311.0,128.0,1400.0,192.0,1431.0,211.0,1442.0,238.0,1431.0,278.0,1525.0,361.0,1502.0,399.0,1419.0,465.0,1356.0,493.0,
1303.0,419.0,1221.0,368.0,1190.0,297.0,1182.0,231.0,1185.0,146.0,1229.0,113.0 },
{ 861.0,-636.0,871.0,-612.0,870.0,-577.0,831.0,-481.0,727.0,-435.0,651.0,-437.0,591.0,-475.0,591.0,-541.0,607.0,-614.0,655.0,-652.0,
861.0,-636.0 },
{ 270.0,-315.0,326.0,-258.0,378.0,-160.0,379.0,-61.0,337.0,-10.0,354.0,62.0,349.0,68.0,334.0,70.0,240.0,55.0,201.0,43.0,
135.0,-8.0,123.0,-76.0,79.0,-147.0,77.0,-203.0,17.0,-219.0,-236.0,-175.0,-251.0,-214.0,-249.0,-249.0,-117.0,-392.0,18.0,-397.0,
18.0,-344.0,203.0,-345.0,270.0,-315.0 },
{ -21.0,-1122.0,-41.0,-1160.0,-56.0,-1158.0,-83.0,-1222.0,-104.0,-1217.0,-99.0,-1201.0,-135.0,-1187.0,-89.0,-1095.0,-21.0,-1122.0 },
{ -631.0,-1300.0,-665.0,-1689.0,-707.0,-1725.0,-775.0,-1692.0,-776.0,-1296.0,-745.0,-1258.0,-684.0,-1292.0,-631.0,-1300.0 },
{ -303.0,-2140.0,-259.0,-2138.0,-253.0,-2174.0,-246.0,-2249.0,-308.0,-2269.0,-344.0,-2158.0,-303.0,-2140.0 },
{ 148.0,-1743.0,346.0,-1741.0,384.0,-1777.0,463.0,-1751.0,642.0,-1776.0,711.0,-1809.0,711.0,-1916.0,398.0,-1908.0,399.0,-1933.0,380.0,-1933.0,
380.0,-2011.0,400.0,-2013.0,400.0,-2047.0,408.0,-2047.0,410.0,-2089.0,348.0,-2089.0,348.0,-2047.0,359.0,-2047.0,359.0,-2038.0,352.0,-2038.0,
352.0,-2024.0,359.0,-2024.0,360.0,-1902.0,167.0,-1892.0,165.0,-1935.0,177.0,-1951.0,166.0,-1970.0,142.0,-1972.0,130.0,-1952.0,143.0,-1934.0,
148.0,-1743.0 },
{ 2764.0,-2187.0,2764.0,-2251.0,2811.0,-2330.0,2810.0,-2566.0,2775.0,-2581.0,2721.0,-2581.0,2666.0,-2566.0,2526.0,-2697.0,2482.0,-2713.0,2427.0,-2713.0,
2374.0,-2698.0,2275.0,-2706.0,2148.0,-2705.0,2150.0,-2657.0,2170.0,-2631.0,2184.0,-2589.0,2186.0,-2504.0,2185.0,-2433.0,2204.0,-2384.0,2294.0,-2293.0,
2391.0,-2205.0,2432.0,-2183.0,2764.0,-2187.0 },
{ 1753.0,-1601.0,1420.0,-1601.0,1448.0,-1430.0,1723.0,-1432.0,1753.0,-1601.0 },
{ 2849.0,-265.0,2592.0,-331.0,2676.0,-455.0,2914.0,-566.0,2849.0,-265.0 },
{ 1687.0,-262.0,1692.0,-374.0,1715.0,-483.0,1740.0,-499.0,1727.0,-638.0,1709.0,-773.0,1717.0,-816.0,1663.0,-795.0,1695.0,-667.0,1694.0,-563.0,
1684.0,-473.0,1663.0,-370.0,1651.0,-289.0,1652.0,-177.0,1687.0,-262.0 }
};
Here is the code for making the polygon (s)
Code:
for (new i = 0; i < MAX_ZONES; i)
{
? ? Z_Zone [i] = CreateDynamicPolygon (ZombieZones [i][]);
}:
But im getting this error:?
Code:
error 029: invalid expression, assumed zero
Any way how to fix this?