13.04.2019, 22:29
How do I add more areas with CreateDynamicPolygon ?
new PolygoArea[2];
PolygoArea[0] = CreateDynamicPolygon(.....);
PolygoArea[1] = CreateDynamicPolygon(.....);
new PolygoArea[2]; PolygoArea[0] = CreateDynamicPolygon(-1039.82, 490.40, -1002.52, 452.99, -1056.22, 399.70, -1092.80, 437.74); PolygoArea[1] = CreateDynamicPolygon(1922.69, -2512.92, 2050.15, -2512.90, 2049.84, -2574.33, 1922.98, -2574.36);
Untitled4.pwn(122) : error 010: invalid function or declaration Untitled4.pwn(130) : error 035: argument type mismatch (argument 2)
Code:
new PolygoArea[2]; PolygoArea[0] = CreateDynamicPolygon(-1039.82, 490.40, -1002.52, 452.99, -1056.22, 399.70, -1092.80, 437.74); PolygoArea[1] = CreateDynamicPolygon(1922.69, -2512.92, 2050.15, -2512.90, 2049.84, -2574.33, 1922.98, -2574.36); Code:
Untitled4.pwn(122) : error 010: invalid function or declaration Untitled4.pwn(130) : error 035: argument type mismatch (argument 2) |
new Float:polygon_coords[] = { 408.2250, 2173.6580, // Point 1 346.6827, 1643.3701, // Point 2 -122.9496, 1689.5978, // Point 3 408.2250, 2173.6580 // Point 1 to close it };