26.09.2010, 14:42
These stupid textdraws are annoying me...
I don't know why.. but they only work for ID 0 and 1.. for the rest of the IDs won't show..
Here is the code:
Thanks.
I don't know why.. but they only work for ID 0 and 1.. for the rest of the IDs won't show..
Here is the code:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
tBarra[i] = TextDrawCreate(36.000000, 430.000000, "Team: ~y~Class: ~h~Rank: ~g~Kills: ~r~Deaths: ~b~Score: ");
TextDrawBackgroundColor(tBarra[i], 255);
TextDrawFont(tBarra[i], 1);
TextDrawLetterSize(tBarra[i], 0.340000, 1.500000);
TextDrawColor(tBarra[i], -1);
TextDrawSetOutline(tBarra[i], 1);
TextDrawSetProportional(tBarra[i], 1);
for(new z = 0; z < 16; z++)
{
TRPC[z][i] = TextDrawCreate(24.000000, 295.000000, RESET);
TextDrawBackgroundColor(TRPC[z][i], 255);
TextDrawFont(TRPC[z][i], 1);
TextDrawLetterSize(TRPC[z][i], 0.330000, 1.199999);
TextDrawColor(TRPC[z][i], -1);
TextDrawSetOutline(TRPC[z][i], 1);
TextDrawSetProportional(TRPC[z][i], 1);
TextDrawUseBox(TRPC[z][i], 1);
TextDrawBoxColor(TRPC[z][i], 0x00000085);
TextDrawTextSize(TRPC[z][i], 160.000000, -23.000000);
}
}
print("Textdraws created!");
}