[Ajuda] Text Draw Nгo Aparecere
#1

Galera Estou Criando Uma GM Do incio, Criei Umas TextDraw Para colocar, nгo da nenhum erro quando vo compila mas os text nao aparece, poderia me ajudar ?

Variavel
pawn Код:
new Text:TextBR;
Em public OnGameModeInit()
pawn Код:
TextBR = TextDrawCreate(1.000000,437.000000, "~r~Black Blocks .Vs. Forca Tatica");
    TextDrawUseBox(TextBR,1);
    TextDrawBoxColor(TextBR,0x00000066);
    TextDrawTextSize(TextBR,641.000000,0.000000);
    TextDrawAlignment(TextBR,0);
    TextDrawBackgroundColor(TextBR,0x000000ff);
    TextDrawFont(TextBR,3);
    TextDrawLetterSize(TextBR,0.399999,1.100000);
    TextDrawColor(TextBR,0xffffffff);
    TextDrawSetOutline(TextBR,1);
    TextDrawSetProportional(TextBR,1);
    TextDrawSetShadow(TextBR,1);
Em public OnGameModeExit()
pawn Код:
TextDrawHideForAll(TextBR);
    TextDrawDestroy(TextBR);
Em public OnPlayerSpawn(playerid)
pawn Код:
for(new i; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            TextDrawShowForPlayer(i, TextBR);
        }
    }
Coloquei tudo certo, porem nao aparece !
Reply
#2

Pra que esse loop ? '-'

E nгo precisa destruir a TextDraw em OnPlayerDisconnect nгo, se ele vai sair й lуgico que nгo vai ver mais nй..
Reply
#3

pawn Код:
//Sou iniciante, mas isso deve dar.
//Coloque so isso

//Topo do GM

new Text:TextBR;

//Em public OnGameModeInit()

    TextBR = TextDrawCreate(1.000000,437.000000, "~r~Black Blocks .Vs. Forca Tatica");
    TextDrawUseBox(TextBR,1);
    TextDrawBoxColor(TextBR,0x00000066);
    TextDrawTextSize(TextBR,641.000000,0.000000);
    TextDrawAlignment(TextBR,0);
    TextDrawBackgroundColor(TextBR,0x000000ff);
    TextDrawFont(TextBR,3);
    TextDrawLetterSize(TextBR,0.399999,1.100000);
    TextDrawColor(TextBR,0xffffffff);
    TextDrawSetOutline(TextBR,1);
    TextDrawSetProportional(TextBR,1);
    TextDrawSetShadow(TextBR,1);

//Na public OnPlayerConnect(playerid)

    TextDrawShowForPlayer(playerid, TextBR);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)