18.12.2015, 16:16
Just a quick question. I'm trying to make 10 boxes in a row with a loop, although no success.
Unfortunately here is what I get
Edit: I have adjusted the Y to see whats going on because they were covering each other and it looked like a continues textdraw.
pawn Код:
for ( new row = 0; row < 10; row++ )
{
reputation_bar[ row ] = TextDrawCreate( 93.250000 + ( row * 25 ), 130.416641+ (row*10), "usebox" );
TextDrawLetterSize(reputation_bar[ row ], 0.000000, -0.122222);
TextDrawTextSize(reputation_bar[ row ], 67.375000, 0.000000);
TextDrawAlignment(reputation_bar[ row ], 1);
TextDrawColor(reputation_bar[ row ], 0);
TextDrawUseBox(reputation_bar[ row ], true);
TextDrawBoxColor(reputation_bar[ row ], 1661529);
TextDrawSetShadow(reputation_bar[ row ], 0);
TextDrawSetOutline(reputation_bar[ row ], 0);
TextDrawFont(reputation_bar[ row ], 0);
}
Edit: I have adjusted the Y to see whats going on because they were covering each other and it looked like a continues textdraw.