SA-MP Forums Archive
When adding new textdraw other textdraw changes - 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)
+--- Thread: When adding new textdraw other textdraw changes (/showthread.php?tid=457710)



When adding new textdraw other textdraw changes - Admigo - 12.08.2013

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


Re: When adding new textdraw other textdraw changes - IstuntmanI - 12.08.2013

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);
}



Re: When adding new textdraw other textdraw changes - Admigo - 12.08.2013

Fixed