SA-MP Forums Archive
Problems with textdraws ¬¬ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problems with textdraws ¬¬ (/showthread.php?tid=179356)



Problems with textdraws ¬¬ - The_Moddler - 26.09.2010

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:
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!");
}
Thanks.