[Ajuda] TextDraw nгo funciona !
#1

Olб to com um problema, To criando um Tutorial com TextDraw portanto eu ja criei tudo certo e definir a textdraw e quando coloco no Dialog nгo Aparece quando entro no servidor ! Meio Confu...

pawn Код:
//Da uma olhadinha no Pawno
//------------------------//

new Text:Luiz; // No Topo

//------------------------//

        Luiz = TextDrawCreate(192.000000, 102.000000, "~n~ ~n~ ~n~ ~n~ ~n~~n~ ~n~ ~n~ ~n~ ~n~~n~ ~n~ ~n~ ~n~ ~n~~n~ ~n~ ~n~ ~n~ ~n~");// Na OnGameModeInit
        TextDrawBackgroundColor(Luiz, 255);
        TextDrawFont(Luiz, 1);
        TextDrawLetterSize(Luiz, 0.500000, 1.399999);
        TextDrawColor(Luiz, -1);
        TextDrawSetOutline(Luiz, 0);
        TextDrawSetProportional(Luiz, 1);
        TextDrawSetShadow(Luiz, 1);
        TextDrawUseBox(Luiz, 1);
        TextDrawBoxColor(Luiz, 120);
        TextDrawTextSize(Luiz, 455.000000, 113.000000);


//------------------------//
    if(dialogid == BOM)//Dialog Pegando Normal so nгo pega com Textdraw na hora de entrar !
    {
        if(response == 1)
        {
            TextDrawShowForPlayer(playerid, Luiz);
            return 1;
        }
        /*else if(response == 0)
        {
            Kick(playerid);
            return 0;
        }*/

        return 1;
    }
//-----------------------//

//Se alguem Poder ajudar eu agradeзo !
Reply
#2

pawn Код:
if(dialogid == BOM)//Dialog Pegando Normal so nгo pega com Textdraw na hora de entrar !
    {
        if(response)
        {
            TextDrawShowForPlayer(playerid, Luiz);
            return 1;
        }
        if(!response)
        {
            Kick(playerid);
            return 0;
        }
        return 1;
    }
Espero ter Ajudado
Reply
#3

coloca no onplayerconnect

TextDrawShowForPlayer(playerid,Luiz);
ou й
TextDrawShowForPlayer(Luiz,playerid);

https://sampwiki.blast.hk/wiki/TextDrawShowForPlayer

https://sampforum.blast.hk/showthread.php?tid=155569

https://sampwiki.blast.hk/wiki/TextDrawCreate
Reply
#4

Quote:
Originally Posted by .FuneraL.
Посмотреть сообщение
pawn Код:
if(dialogid == BOM)//Dialog Pegando Normal so nгo pega com Textdraw na hora de entrar !
    {
        if(response)
        {
            TextDrawShowForPlayer(playerid, Luiz);
            return 1;
        }
        if(!response)
        {
            Kick(playerid);
            return 0;
        }
        return 1;
    }
Espero ter Ajudado
Tentei do seu Jeito e nгo funcionou


Quote:
Originally Posted by Math3us
Посмотреть сообщение
coloca no onplayerconnect

TextDrawShowForPlayer(playerid,Luiz);
ou й
TextDrawShowForPlayer(Luiz,playerid);

https://sampwiki.blast.hk/wiki/TextDrawShowForPlayer

https://sampforum.blast.hk/showthread.php?tid=155569

https://sampwiki.blast.hk/wiki/TextDrawCreate
Tentei colocar na OnPlayerConnect mais nгo funcionou !
Reply
#5

Vc que fazer um tutorial e nгo sabe fazer wtf vey antes de fazer tutorial estude as funзхes no wiki ''-''
Reply
#6

Mano posso estar enganado mas o acho que o erro ta aqui:
em vez de " ~n~ " tenta botar outra coisa ..
pawn Код:
Luiz = TextDrawCreate(192.000000, 102.000000, "~n~ ~n~ ~n~ ~n~ ~n~~n~ ~n~ ~n~ ~n~ ~n~~n~ ~n~ ~n~ ~n~ ~n~~n~ ~n~ ~n~ ~n~ ~n~");// Na OnGameModeInit
e falta tb em onplayerconnect
TextDrawShowForPlayer(Luiz,playerid);
Reply
#7

pawn Код:
//Da uma olhadinha no Pawno
//------------------------//

new Text:Luiz[MAX_PLAYERS]; // No Topo

//------------------------//
// OnGameModeInit
        for(new j = 0; j < MAX_PLAYERS; j++)
        {
            Luiz[j] = TextDrawCreate(192.000000, 102.000000, "~n~ ~n~ ~n~ ~n~ ~n~~n~ ~n~ ~n~ ~n~ ~n~~n~ ~n~ ~n~ ~n~ ~n~~n~ ~n~ ~n~ ~n~ ~n~");// Na OnGameModeInit
            TextDrawBackgroundColor(Luiz[j], 255);
            TextDrawFont(Luiz[j], 1);
            TextDrawLetterSize(Luiz[j], 0.500000, 1.399999);
            TextDrawColor(Luiz[j], -1);
            TextDrawSetOutline(Luiz[j], 0);
            TextDrawSetProportional(Luiz[j], 1);
            TextDrawSetShadow(Luiz[j], 1);
            TextDrawUseBox(Luiz[j], 1);
            TextDrawBoxColor(Luiz[j], 120);
            TextDrawTextSize(Luiz[j], 455.000000, 113.000000);
        }
//------------------------//
    if(dialogid == BOM)//Dialog Pegando Normal so nгo pega com Textdraw na hora de entrar !
    {
        if(response == 1)
        {
            TextDrawShowForPlayer(playerid, Luiz[playerid]);
            return 1;
        }
        /*else if(response == 0)
        {
            Kick(playerid);
            return 0;
        }*/

        return 1;
    }
//-----------------------//

//Se alguem Poder ajudar eu agradeзo !
Reply
#8

Quote:
Originally Posted by bastiga
Посмотреть сообщение
Mano posso estar enganado mas o acho que o erro ta aqui:
em vez de " ~n~ " tenta botar outra coisa ..
pawn Код:
Luiz = TextDrawCreate(192.000000, 102.000000, "~n~ ~n~ ~n~ ~n~ ~n~~n~ ~n~ ~n~ ~n~ ~n~~n~ ~n~ ~n~ ~n~ ~n~~n~ ~n~ ~n~ ~n~ ~n~");// Na OnGameModeInit
e falta tb em onplayerconnect
TextDrawShowForPlayer(Luiz,playerid);
Tem nada ver isso '-'

Jб testei de vбrios jeito o problema й que nгo ta abrindo o TextDraw depois que Registrar !
Reply
#9

Alguem ajuda? Jб testei de vбrios jeito o problema й que nгo ta abrindo o TextDraw depois que Registrar !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)