[Ajuda] Textdraw bugando
#1

Textdraw esta bugada ? so aparece a ultima textdraw no gamemode.

Код:
    Textdraw1[0] = TextDrawCreate(219 ,35 , "Seja bem vindo");
    TextDrawFont(Textdraw1[0] , 0);
    TextDrawLetterSize(Textdraw1[0] , 1, 7);
    TextDrawColor(Textdraw1[0] , 0xff3300FF);
    TextDrawSetOutline(Textdraw1[0] , true);
    TextDrawSetProportional(Textdraw1[0] , true);
    TextDrawSetShadow(Textdraw1[0] , 1);
    
    Textdraw1[1] = TextDrawCreate(219 ,35, "~w~EQUIPE ~r~R~w~B");
    TextDrawFont(Textdraw1[1] , 3);
    TextDrawLetterSize(Textdraw1[1] , 1, 7);
    TextDrawColor(Textdraw1[1] , 0xFF0000FF);
    TextDrawSetOutline(Textdraw1[1] , true);
    TextDrawSetProportional(Textdraw1[1] , true);
    TextDrawSetShadow(Textdraw1[1] , 1);

	
    Textdraw1[2] = TextDrawCreate(219 ,380, "www.equiperb.com");
    TextDrawFont(Textdraw1[2] , 1);
    TextDrawLetterSize(Textdraw1[2] , 1, 2);
    TextDrawColor(Textdraw1[2] , 0xFF0000FF);
    TextDrawSetOutline(Textdraw1[2] , true);
    TextDrawSetProportional(Textdraw1[2] , true);
    TextDrawSetShadow(Textdraw1[2] , 1);
Reply
#2

Manda a new da textdraw e quando й mostrado a textdraw para o player
Reply
#3

Ai
Код:
new Text:Textdraw1[3];

TextDrawShowForPlayer(playerid, Textdraw1[0]);
TextDrawShowForPlayer(playerid, Textdraw1[1]);
TextDrawShowForPlayer(playerid, Textdraw1[2]);
Reply
#4

Troque por
pawn Код:
new Text:Textdraw1[0];
new Text:Textdraw1[1];
new Text:Textdraw1[2];

TextDrawShowForPlayer(playerid, Textdraw1[0]);
TextDrawShowForPlayer(playerid, Textdraw1[1]);
TextDrawShowForPlayer(playerid, Textdraw1[2]);
Reply
#5

Assim vai da erro WKhalifa
Reply
#6

Manda a parte do cуdigo que faz aparecer a TextDraw.

Quote:
Originally Posted by WKhalifa
Посмотреть сообщение
Troque por
pawn Код:
new Text:Textdraw1[0];
new Text:Textdraw1[1];
new Text:Textdraw1[2];

TextDrawShowForPlayer(playerid, Textdraw1[0]);
TextDrawShowForPlayer(playerid, Textdraw1[1]);
TextDrawShowForPlayer(playerid, Textdraw1[2]);
Cara, estuda sobre matrizes bidimensional.
Reply
#7

pawn Код:
new Text:Textdraw1[3];

public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw1[0]);
TextDrawShowForPlayer(playerid, Textdraw1[1]);
TextDrawShowForPlayer(playerid, Textdraw1[2]);
return 1;
}
Veja ai ser pega ai
Reply
#8

Pelo que eu vejo estб tudo normal. Й estranho '-'
Reply
#9

As TextDraws apareentemente estгo sendo criadas, mas sу uma й mostrada. Como elas estгo setadas em "TextDrawShowForAll"?
Reply
#10

Tente:
Quote:

new Text:TextDraw0;
new Text:TextDraw1;
new Text:TextDraw2;
//ONGAMEMODEINIT
Textdraw0 = TextDrawCreate(219 ,35 , "Seja bem vindo");
TextDrawFont(Textdraw0, 0);
TextDrawLetterSize(Textdraw0, 1, 7);
TextDrawColor(Textdraw0, 0xff3300FF);
TextDrawSetOutline(Textdraw0, true);
TextDrawSetProportional(Textdraw0, true);
TextDrawSetShadow(Textdraw0, 1);

Textdraw1 = TextDrawCreate(219 ,35, "~w~EQUIPE ~r~R~w~B");
TextDrawFont(Textdraw1, 3);
TextDrawLetterSize(Textdraw1, 1, 7);
TextDrawColor(Textdraw1[1] , 0xFF0000FF);
TextDrawSetOutline(Textdraw1, true);
TextDrawSetProportional(Textdraw1, true);
TextDrawSetShadow(Textdraw1, 1);

Textdraw2 = TextDrawCreate(219 ,380, "www.equiperb.com");
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 1, 2);
TextDrawColor(Textdraw2, 0xFF0000FF);
TextDrawSetOutline(Textdraw2, true);
TextDrawSetProportional(Textdraw2, true);
TextDrawSetShadow(Textdraw2, 1);

//ONPLAYERCONNECT
TextDrawShowForPlayer(playerid, TextDraw0);
TextDrawShowForPlayer(playerid, TextDraw1);
TextDrawShowForPlayer(playerid, TextDraw2);

Reply


Forum Jump:


Users browsing this thread: