[Ajuda] TextDraw
#1

Caramba minha textdraw nгo ta aparecendo ¬¬
pawn Код:
new Text:Textdraw2 [ MAX_PLAYERS ] ;
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
pawn Код:
Textdraw0 = TextDrawCreate(108.000000, 429.000000, ".");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 40.909950, 1.200000);
    TextDrawColor(Textdraw0, -16776961);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawSetShadow(Textdraw0, 1);

    Textdraw1 = TextDrawCreate(108.000000, 407.000000, ".");
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw1, 1);
    TextDrawLetterSize(Textdraw1, 40.909950, 1.200000);
    TextDrawColor(Textdraw1, -16776961);
    TextDrawSetOutline(Textdraw1, 0);
    TextDrawSetProportional(Textdraw1, 1);
    TextDrawSetShadow(Textdraw1, 1);

    Textdraw5 = TextDrawCreate(250.000000, 418.000000, "Extreme Zombie");
    TextDrawBackgroundColor(Textdraw5, 255);
    TextDrawFont(Textdraw5, 0);
    TextDrawLetterSize(Textdraw5, 0.719999, 1.699998);
    TextDrawColor(Textdraw5, -1);
    TextDrawSetOutline(Textdraw5, 0);
    TextDrawSetProportional(Textdraw5, 1);
    TextDrawSetShadow(Textdraw5, 1);

    Textdraw3 = TextDrawCreate(548.000000, 429.000000, ".");
    TextDrawBackgroundColor(Textdraw3, 255);
    TextDrawFont(Textdraw3, 1);
    TextDrawLetterSize(Textdraw3, 9.199997, 1.200000);
    TextDrawColor(Textdraw3, -16776961);
    TextDrawSetOutline(Textdraw3, 0);
    TextDrawSetProportional(Textdraw3, 1);
    TextDrawSetShadow(Textdraw3, 1);

    Textdraw4 = TextDrawCreate(547.000000, 407.000000, ".");
    TextDrawBackgroundColor(Textdraw4, 255);
    TextDrawFont(Textdraw4, 1);
    TextDrawLetterSize(Textdraw4, 9.199997, 1.200000);
    TextDrawColor(Textdraw4, -16776961);
    TextDrawSetOutline(Textdraw4, 0);
    TextDrawSetProportional(Textdraw4, 1);
    TextDrawSetShadow(Textdraw4, 1);

    for(new i; i < MAX_PLAYERS; i++)
    {
    Textdraw2[i] = TextDrawCreate(570.000000, 418.000000, "Score:0");
    TextDrawBackgroundColor(Textdraw2[i], 255);
    TextDrawFont(Textdraw2[i], 3);
    TextDrawLetterSize(Textdraw2[i], 0.239998, 1.299998);
    TextDrawColor(Textdraw2[i], -1);
    TextDrawSetOutline(Textdraw2[i], 0);
    TextDrawSetProportional(Textdraw2[i], 1);
    TextDrawSetShadow(Textdraw2[i], 1);
    }
Ta compilando certinho mas nгo aparece nada .-.
Sу aparece o Score:0

Era pra aparecer assim:

Reply
#2

Coloque em OnPlayerConnect.

pawn Код:
TextDrawShowForPlayer(playerid,Textdraw0);
TextDrawShowForPlayer(playerid,Textdraw1);
TextDrawShowForPlayer(playerid,Textdraw2[playerid]);
TextDrawShowForPlayer(playerid,Textdraw3);
TextDrawShowForPlayer(playerid,Textdraw4);
TextDrawShowForPlayer(playerid,Textdraw5);
Reply
#3

Nuss, pequenos detalhes esquecidos rs. Obrigado!
Rep+
Reply
#4

De nada,valeu.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)