19.12.2014, 01:05
I'm trying to fullfill a dynamic poligon that i made using the Incognito's streamer i tried making a loop from one corner of the polygon to the oposite one but im getting half of the poligon filled. Just to be more specific i will show you an image:

I tried using this code:
But just like i said im getting half of the polygon filled.

I tried using this code:
pawn Code:
new Float:zones_points_9[] = {
-291.0,-76.0,39.0,-144.0,56.0,-73.0,84.0,29.0,20.0,75.0,-100.0,147.0,-199.0,184.0,-291.0,-76.0
};
public OnGameModeInit()
{
Terrenos[9] = CreateDynamicPolygon(zones_points_9);
new Float:zPos;
for(new y = 71; y > -125; y -= 3)
{
for(new x = 16; x < 83; x += 3)
{
GetPointZPos(x,y,zPos);
CreateDynamicPickup(1239, 2, x,y,zPos+2,-1,-1,-1,50.0);
printf("%d %d", x,y);
}
}
return 1;
}