Portal SAMP
[Ajuda] Preciso de ajuda com textdraw - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] Preciso de ajuda com textdraw (/showthread.php?tid=4463)



Preciso de ajuda com textdraw - overlordfy - 24/01/2024

Olá, quando eu crio uma textdraw tipo text eu não posso ativar a user box, se eu ativar ele simplesmente o click não funciona, resumindo eu não consigo usar mais a função de clicar na textdraw texto, então fica impossível de eu criar uma textdraw.

Foto

Codigo para usar o clique

Código:
public OnPlayerConnect(playerid)
{
        RegistrarPlayer_PTD[playerid][2] = CreatePlayerTextDraw(playerid, 32.500038, 240.083267, "idade");
PlayerTextDrawLetterSize(playerid, RegistrarPlayer_PTD[playerid][2], 0.342999, 1.450000);
PlayerTextDrawTextSize(playerid, RegistrarPlayer_PTD[playerid][2], 0.000000, 29.000000);
PlayerTextDrawAlignment(playerid, RegistrarPlayer_PTD[playerid][2], 2);
PlayerTextDrawColor(playerid, RegistrarPlayer_PTD[playerid][2], -1);
PlayerTextDrawUseBox(playerid, RegistrarPlayer_PTD[playerid][2], 1);
PlayerTextDrawBoxColor(playerid, RegistrarPlayer_PTD[playerid][2], 255);
PlayerTextDrawSetShadow(playerid, RegistrarPlayer_PTD[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, RegistrarPlayer_PTD[playerid][2], 255);
PlayerTextDrawFont(playerid, RegistrarPlayer_PTD[playerid][2], 3);
PlayerTextDrawSetProportional(playerid, RegistrarPlayer_PTD[playerid][2], 1);
PlayerTextDrawSetSelectable(playerid, RegistrarPlayer_PTD[playerid][2], true);
    return 1;
}


Código:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
    if(playertextid == RegistrarPlayer_PTD[playerid][2])
    {
        ShowPlayerDialog(playerid, Dialog_InserirIdade, DIALOG_STYLE_INPUT, "Idade", "Escolha a Idade do seu Personagem", "Confirmar", "");
    }
    return 1;
}



RE: Preciso de ajuda com textdraw - xbruno1000x - 24/01/2024

Baixa o NTD, tem suporte até hoje, além de ter como colocar em português do brasil.

Link:
https://github.com/Nickk888SAMP/TextDraw...r/releases


RE: Preciso de ajuda com textdraw - overlordfy - 24/01/2024

(24/01/2024 23:09)xbruno1000x Escreveu: Baixa o NTD, tem suporte até hoje, além de ter como colocar em português do brasil.

Link:
https://github.com/Nickk888SAMP/TextDraw...r/releases
NTD não tem a include para usar playerid, fala que falta a include "progress2" e eu já instalei a original e varias outras versões e nenhumas delas ta indo, e alem disso quando define uma textdraw como cllicavel não aparece nada na tela mostrando que a textdraw ta clicavel.


RE: Preciso de ajuda com textdraw - Carlos Victor - 24/01/2024

1°: Tem sim a opção de alterar o Textdraw para playerid, basta prestar atenção nos botões abaixo.
2° Não é necessário ter o progress2 baixado, e também no próprio repositório diz onde baixar:
[Imagem: YPiPco3.png]

3°: Mostra sim quando o Textdraw é clicável, talvez você não tenha percebido.


RE: Preciso de ajuda com textdraw - overlordfy - 25/01/2024

(24/01/2024 23:42)Carlos Victor Escreveu: 1°: Tem sim a opção de alterar o Textdraw para playerid, basta prestar atenção nos botões abaixo.
2° Não é necessário ter o progress2 baixado, e também no próprio repositório diz onde baixar:
[Imagem: YPiPco3.png]

3°: Mostra sim quando o Textdraw é clicável, talvez você não tenha percebido.

eu sei amigo mas infelizmente não funcionou no meu caso, instalei include e etc mas do mesmo jeito não salva como playerid, e na scriptfiles continua falando que é problema da include progress2.