When adding new textdraw other textdraw changes
#1

When i add one textdraw , my timer textdraw will be changed(Font, lettersize)
The textdraws have a different name so thats not the problem.
This one makes the timer textdraw messed up
pawn Код:
new Text:TextDraw139[MAX_PLAYERS][MAX_SLOTS];//textdraw numbers+items//top of script
//Onplayerconnect
    for(new line; line<11; line++)
    {
        format(MessageStr[line], 128, " ");
    }


    for(new line; line<11; line++)
    {
        TextDraw139[playerid][1] = TextDrawCreate(5.000000, 141.250000, MessageStr[0]);
        TextDraw139[playerid][2] = TextDrawCreate(5.000000, 148.250000, MessageStr[1]);
        TextDraw139[playerid][3] = TextDrawCreate(5.000000, 155.250000, MessageStr[2]);
        TextDraw139[playerid][4] = TextDrawCreate(5.000000, 162.250000, MessageStr[3]);
        TextDraw139[playerid][5] = TextDrawCreate(5.000000, 169.250000, MessageStr[4]);
        TextDraw139[playerid][6] = TextDrawCreate(5.000000, 176.250000, MessageStr[5]);
        TextDraw139[playerid][7] = TextDrawCreate(5.000000, 183.250000, MessageStr[6]);
        TextDraw139[playerid][8] = TextDrawCreate(5.000000, 190.250000, MessageStr[7]);
        TextDraw139[playerid][9] = TextDrawCreate(5.000000, 197.250000, MessageStr[8]);
        TextDraw139[playerid][10] = TextDrawCreate(5.000000, 204.250000, MessageStr[9]);
    }
   
    for(new line; line<11; line++)
    {
        TextDrawLetterSize(TextDraw139[playerid][line], 0.299999,1.000000);
        TextDrawSetShadow(TextDraw139[playerid][line], 0);
        TextDrawTextSize(TextDraw139[playerid][line], 265.000000, 510.000000);
        TextDrawFont(TextDraw139[playerid][line], 1);
        TextDrawSetOutline(TextDraw139[playerid][line], 1);
    }
How to fix this?

Admigo
Reply
#2

pawn Код:
new Text:TextDraw139[MAX_PLAYERS][MAX_SLOTS];//textdraw numbers+items//top of script
//Onplayerconnect
for(new line; line<11; line++)
{
    format(MessageStr[line], 128, " ");
}


TextDraw139[playerid][0] = TextDrawCreate(5.000000, 141.250000, MessageStr[0]);
TextDraw139[playerid][1] = TextDrawCreate(5.000000, 148.250000, MessageStr[1]);
TextDraw139[playerid][2] = TextDrawCreate(5.000000, 155.250000, MessageStr[2]);
TextDraw139[playerid][3] = TextDrawCreate(5.000000, 162.250000, MessageStr[3]);
TextDraw139[playerid][4] = TextDrawCreate(5.000000, 169.250000, MessageStr[4]);
TextDraw139[playerid][5] = TextDrawCreate(5.000000, 176.250000, MessageStr[5]);
TextDraw139[playerid][6] = TextDrawCreate(5.000000, 183.250000, MessageStr[6]);
TextDraw139[playerid][7] = TextDrawCreate(5.000000, 190.250000, MessageStr[7]);
TextDraw139[playerid][8] = TextDrawCreate(5.000000, 197.250000, MessageStr[8]);
TextDraw139[playerid][9] = TextDrawCreate(5.000000, 204.250000, MessageStr[9]);

for(new line; line<11; line++)
{
    TextDrawLetterSize(TextDraw139[playerid][line], 0.299999,1.000000);
    TextDrawSetShadow(TextDraw139[playerid][line], 0);
    TextDrawTextSize(TextDraw139[playerid][line], 265.000000, 510.000000);
    TextDrawFont(TextDraw139[playerid][line], 1);
    TextDrawSetOutline(TextDraw139[playerid][line], 1);
}
Reply
#3

Fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)