Portal SAMP
[Ajuda] Problemas na 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] Problemas na textdraw (/showthread.php?tid=2201)



Problemas na textdraw - MiguelOFF - 17/03/2022

Galera eu sou novo aqui, recentemente fiquei interessado em aprender sobre a linguagem pawn, e criar um servidor de teste, para ver se fica bom. Eu tô tendo problemas na textdraw, e queria saber se alguem pode me ajudar a entender o que eu fiz de errado, nesse código abaixo:

Lembrando que eu sou muito leigo nisso mas quero muito aprender.
erro no PAWN Compiler: error 001: 
expected token: "{", but found "-label-"
error 001: expected token: "}", but found ";"

código:

//Player TextDraws:
new PlayerText:Menu_SKIN[MAX_PLAYERS][23] = PlayerText:INVALID_TEXT_DRAW;
// acho q o erro acontece aqui 

CMD:comprarskin(playerid){
   
    //Loja de skin
 
    //loja de skin
Menu_SKIN[playerid][0] = CreatePlayerTextDraw(playerid, 91.999908, 141.466644, "box");
PlayerTextDrawLetterSize(playerid, Menu_SKIN[playerid][0], 0.000000, 29.300003);
PlayerTextDrawTextSize(playerid, Menu_SKIN[playerid][0], 570.966308, 0.000000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][0], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][0], -1);
PlayerTextDrawUseBox(playerid, Menu_SKIN[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, Menu_SKIN[playerid][0], 16777139);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][0], -225);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][0], 1);

Menu_SKIN[playerid][1] = CreatePlayerTextDraw(playerid, 492.000000, 148.933288, "box");
PlayerTextDrawLetterSize(playerid, Menu_SKIN[playerid][1], 0.000000, 1.900000);
PlayerTextDrawTextSize(playerid, Menu_SKIN[playerid][1], 559.000000, 0.000000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][1], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][1], -16776961);
PlayerTextDrawUseBox(playerid, Menu_SKIN[playerid][1], 1);
PlayerTextDrawBoxColor(playerid, Menu_SKIN[playerid][1], -16776961);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][1], 255);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][1], 1);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][1], 1);

Menu_SKIN[playerid][2] = CreatePlayerTextDraw(playerid, 493.500030, 148.766571, "fechar");
PlayerTextDrawLetterSize(playerid, Menu_SKIN[playerid][2], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][2], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][2], 255);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][2], 255);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][2], 2);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][2], 1);
PlayerTextDrawSetSelectable(playerid, Menu_SKIN[playerid][2], true);

Menu_SKIN[playerid][3] = CreatePlayerTextDraw(playerid, 98.299690, 386.999755, "box");
PlayerTextDrawLetterSize(playerid, Menu_SKIN[playerid][3], 0.000000, 1.388007);
PlayerTextDrawTextSize(playerid, Menu_SKIN[playerid][3], 176.901336, 0.000000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][3], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][3], -1);
PlayerTextDrawUseBox(playerid, Menu_SKIN[playerid][3], 1);
PlayerTextDrawBoxColor(playerid, Menu_SKIN[playerid][3], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][3], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][3], 255);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][3], 1);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][3], 1);

Menu_SKIN[playerid][4] = CreatePlayerTextDraw(playerid, 96.199676, 385.099884, "anterior");
PlayerTextDrawLetterSize(playerid, Menu_SKIN[playerid][4], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][4], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][4], 255);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][4], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][4], 255);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][4], 2);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][4], 1);
PlayerTextDrawSetSelectable(playerid, Menu_SKIN[playerid][4], true);

Menu_SKIN[playerid][5] = CreatePlayerTextDraw(playerid, 482.200012, 387.632873, "box");
PlayerTextDrawLetterSize(playerid, Menu_SKIN[playerid][5], 0.000000, 1.299999);
PlayerTextDrawTextSize(playerid, Menu_SKIN[playerid][5], 563.199951, 0.000000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][5], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][5], -1);
PlayerTextDrawUseBox(playerid, Menu_SKIN[playerid][5], 1);
PlayerTextDrawBoxColor(playerid, Menu_SKIN[playerid][5], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][5], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][5], 255);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][5], 1);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][5], 1);

Menu_SKIN[playerid][6] = CreatePlayerTextDraw(playerid, 487.900177, 385.066650, "proximo");
PlayerTextDrawLetterSize(playerid, Menu_SKIN[playerid][6], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][6], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][6], 255);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][6], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][6], 255);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][6], 2);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][6], 1);
PlayerTextDrawSetSelectable(playerid, Menu_SKIN[playerid][6], true);

Menu_SKIN[playerid][7] = CreatePlayerTextDraw(playerid, 490.000000, 179.266647, "");
PlayerTextDrawTextSize(playerid, Menu_SKIN[playerid][7], 69.000000, 93.000000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][7], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][7], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][7], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][7], -1);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][7], 5);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][7], 0);
PlayerTextDrawSetSelectable(playerid, Menu_SKIN[playerid][7], true);
PlayerTextDrawSetPreviewModel(playerid, Menu_SKIN[playerid][7], 26);
PlayerTextDrawSetPreviewRot(playerid, Menu_SKIN[playerid][7], 0.000000, 0.000000, 0.000000, 1.000000);

Menu_SKIN[playerid][8] = CreatePlayerTextDraw(playerid, 413.000000, 179.233352, "");
PlayerTextDrawTextSize(playerid, Menu_SKIN[playerid][8], 69.000000, 93.000000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][8], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][8], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][8], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][8], -1);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][8], 5);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][8], 0);
PlayerTextDrawSetSelectable(playerid, Menu_SKIN[playerid][8], true);
PlayerTextDrawSetPreviewModel(playerid, Menu_SKIN[playerid][8], 26);
PlayerTextDrawSetPreviewRot(playerid, Menu_SKIN[playerid][8], 0.000000, 0.000000, 0.000000, 1.000000);

Menu_SKIN[playerid][9] = CreatePlayerTextDraw(playerid, 102.599594, 146.133285, "escolha_uma_skin");
PlayerTextDrawLetterSize(playerid, Menu_SKIN[playerid][9], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][9], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][9], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][9], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][9], 255);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][9], 2);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][9], 1);

Menu_SKIN[playerid][10] = CreatePlayerTextDraw(playerid, 335.500091, 179.766662, "");
PlayerTextDrawTextSize(playerid, Menu_SKIN[playerid][10], 69.000000, 93.000000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][10], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][10], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][10], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][10], -1);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][10], 5);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][10], 0);
PlayerTextDrawSetSelectable(playerid, Menu_SKIN[playerid][10], true);
PlayerTextDrawSetPreviewModel(playerid, Menu_SKIN[playerid][10], 26);
PlayerTextDrawSetPreviewRot(playerid, Menu_SKIN[playerid][10], 0.000000, 0.000000, 0.000000, 1.000000);

Menu_SKIN[playerid][11] = CreatePlayerTextDraw(playerid, 258.199890, 179.899932, "");
PlayerTextDrawTextSize(playerid, Menu_SKIN[playerid][11], 69.000000, 93.000000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][11], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][11], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][11], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][11], -1);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][11], 5);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][11], 0);
PlayerTextDrawSetSelectable(playerid, Menu_SKIN[playerid][11], true);
PlayerTextDrawSetPreviewModel(playerid, Menu_SKIN[playerid][11], 26);
PlayerTextDrawSetPreviewRot(playerid, Menu_SKIN[playerid][11], 0.000000, 0.000000, 0.000000, 1.000000);

Menu_SKIN[playerid][12] = CreatePlayerTextDraw(playerid, 180.400085, 179.899948, "");
PlayerTextDrawTextSize(playerid, Menu_SKIN[playerid][12], 69.000000, 93.000000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][12], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][12], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][12], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][12], -1);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][12], 5);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][12], 0);
PlayerTextDrawSetSelectable(playerid, Menu_SKIN[playerid][12], true);
PlayerTextDrawSetPreviewModel(playerid, Menu_SKIN[playerid][12], 26);
PlayerTextDrawSetPreviewRot(playerid, Menu_SKIN[playerid][12], 0.000000, 0.000000, 0.000000, 1.000000);

Menu_SKIN[playerid][13] = CreatePlayerTextDraw(playerid, 102.800094, 179.899948, "");
PlayerTextDrawTextSize(playerid, Menu_SKIN[playerid][13], 69.000000, 93.000000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][13], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][13], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][13], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][13], -1);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][13], 5);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][13], 0);
PlayerTextDrawSetSelectable(playerid, Menu_SKIN[playerid][13], true);
PlayerTextDrawSetPreviewModel(playerid, Menu_SKIN[playerid][13], 26);
PlayerTextDrawSetPreviewRot(playerid, Menu_SKIN[playerid][13], 0.000000, 0.000000, 0.000000, 1.000000);

Menu_SKIN[playerid][14] = CreatePlayerTextDraw(playerid, 102.800109, 280.466705, "");
PlayerTextDrawTextSize(playerid, Menu_SKIN[playerid][14], 69.000000, 93.000000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][14], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][14], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][14], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][14], -1);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][14], 5);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][14], 0);
PlayerTextDrawSetSelectable(playerid, Menu_SKIN[playerid][14], true);
PlayerTextDrawSetPreviewModel(playerid, Menu_SKIN[playerid][14], 26);
PlayerTextDrawSetPreviewRot(playerid, Menu_SKIN[playerid][14], 0.000000, 0.000000, 0.000000, 1.000000);

Menu_SKIN[playerid][15] = CreatePlayerTextDraw(playerid, 180.502929, 280.466705, "");
PlayerTextDrawTextSize(playerid, Menu_SKIN[playerid][15], 69.000000, 93.000000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][15], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][15], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][15], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][15], -1);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][15], 5);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][15], 0);
PlayerTextDrawSetSelectable(playerid, Menu_SKIN[playerid][15], true);
PlayerTextDrawSetPreviewModel(playerid, Menu_SKIN[playerid][15], 26);
PlayerTextDrawSetPreviewRot(playerid, Menu_SKIN[playerid][15], 0.000000, 0.000000, 0.000000, 1.000000);

Menu_SKIN[playerid][16] = CreatePlayerTextDraw(playerid, 259.007720, 280.466705, "");
PlayerTextDrawTextSize(playerid, Menu_SKIN[playerid][16], 69.000000, 93.000000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][16], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][16], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][16], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][16], -1);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][16], 5);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][16], 0);
PlayerTextDrawSetSelectable(playerid, Menu_SKIN[playerid][16], true);
PlayerTextDrawSetPreviewModel(playerid, Menu_SKIN[playerid][16], 26);
PlayerTextDrawSetPreviewRot(playerid, Menu_SKIN[playerid][16], 0.000000, 0.000000, 0.000000, 1.000000);

Menu_SKIN[playerid][17] = CreatePlayerTextDraw(playerid, 335.912414, 280.466705, "");
PlayerTextDrawTextSize(playerid, Menu_SKIN[playerid][17], 69.000000, 93.000000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][17], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][17], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][17], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][17], -1);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][17], 5);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][17], 0);
PlayerTextDrawSetSelectable(playerid, Menu_SKIN[playerid][17], true);
PlayerTextDrawSetPreviewModel(playerid, Menu_SKIN[playerid][17], 26);
PlayerTextDrawSetPreviewRot(playerid, Menu_SKIN[playerid][17], 0.000000, 0.000000, 0.000000, 1.000000);

Menu_SKIN[playerid][18] = CreatePlayerTextDraw(playerid, 412.817108, 280.466705, "");
PlayerTextDrawTextSize(playerid, Menu_SKIN[playerid][18], 69.000000, 93.000000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][18], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][18], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][18], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][18], -1);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][18], 5);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][18], 0);
PlayerTextDrawSetSelectable(playerid, Menu_SKIN[playerid][18], true);
PlayerTextDrawSetPreviewModel(playerid, Menu_SKIN[playerid][18], 26);
PlayerTextDrawSetPreviewRot(playerid, Menu_SKIN[playerid][18], 0.000000, 0.000000, 0.000000, 1.000000);

Menu_SKIN[playerid][19] = CreatePlayerTextDraw(playerid, 489.421783, 280.466705, "");
PlayerTextDrawTextSize(playerid, Menu_SKIN[playerid][19], 69.000000, 93.000000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][19], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][19], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][19], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][19], -1);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][19], 5);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][19], 0);
PlayerTextDrawSetSelectable(playerid, Menu_SKIN[playerid][19], true);
PlayerTextDrawSetPreviewModel(playerid, Menu_SKIN[playerid][19], 26);
PlayerTextDrawSetPreviewRot(playerid, Menu_SKIN[playerid][19], 0.000000, 0.000000, 0.000000, 1.000000);

Menu_SKIN[playerid][20] = CreatePlayerTextDraw(playerid, 321.300384, 385.066436, "1/1");
PlayerTextDrawLetterSize(playerid, Menu_SKIN[playerid][20], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][20], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][20], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][20], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][20], 255);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][20], 1);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][20], 1);

Menu_SKIN[playerid][21] = CreatePlayerTextDraw(playerid, 189.299957, 385.999938, "<<<<<<<<<<<<<");
PlayerTextDrawLetterSize(playerid, Menu_SKIN[playerid][21], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][21], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][21], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][21], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][21], 255);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][21], 1);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][21], 1);

Menu_SKIN[playerid][22] = CreatePlayerTextDraw(playerid, 350.000000, 385.600219, ">>>>>>>>>>>>");
PlayerTextDrawLetterSize(playerid, Menu_SKIN[playerid][22], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, Menu_SKIN[playerid][22], 1);
PlayerTextDrawColor(playerid, Menu_SKIN[playerid][22], -1);
PlayerTextDrawSetShadow(playerid, Menu_SKIN[playerid][22], 0);
PlayerTextDrawBackgroundColor(playerid, Menu_SKIN[playerid][22], 255);
PlayerTextDrawFont(playerid, Menu_SKIN[playerid][22], 1);
PlayerTextDrawSetProportional(playerid, Menu_SKIN[playerid][22], 1);
   
    SelectTextDraw(playerid, Verde);// para aparecer o mouse

PlayerTextDrawShow(playerid, Menu_SKIN[playerid][0]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][1]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][2]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][3]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][4]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][5]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][6]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][7]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][8]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][9]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][10]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][11]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][12]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][13]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][14]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][15]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][16]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][17]);
  PlayerTextDrawShow(playerid, Menu_SKIN[playerid][18]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][19]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][20]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][21]);
    PlayerTextDrawShow(playerid, Menu_SKIN[playerid][22]);


 
   
return 1;
}
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid){
 
    if(playertextid == PlayerText:INVALID_TEXT_DRAW){
SendClientMessage(playerid, Vermelho, "Teste");
PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][0]);
PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][1]);
PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][2]);
PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][3]);
PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][4]);
  PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][5]);
  PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][6]);
    PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][7]);
    PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][8]);
    PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][9]);
    PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][10]);
  PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][11]);
    PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][12]);
    PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][13]);
    PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][14]);
    PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][15]);
    PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][16]);
    PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][17]);
    PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][18]);
    PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][19]);
    PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][20]);
    PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][21]);
    PlayerTextDrawDestroy(playerid, Menu_SKIN[playerid][22]);



}


return 1;
}



RE: Problemas na textdraw - xbruno1000x - 17/03/2022

Código:
new PlayerText:Menu_SKIN[MAX_PLAYERS][23];

Não faço ideia do porque você igual isso tudo a Invalid Textdraw, mas dessa forma deve funcionar corretamente.


RE: Problemas na textdraw - MiguelOFF - 17/03/2022

(17/03/2022 03:32)xbruno1000x Escreveu:
Código:
new PlayerText:Menu_SKIN[MAX_PLAYERS][23];

Não faço ideia do porque você igual isso tudo a Invalid Textdraw, mas dessa forma deve funcionar corretamente
Olá Bruno. Eu quero fazer a textdraw sumir da tela quando ele aperta esc aí eu tentei colocar igual inválid Textdraw. E não deu certo tô doidinho aqui procurando saber como tira a textdraw da tela se puder me ajudar agradeço.

(17/03/2022 03:51)MiguelOFF Escreveu:
(17/03/2022 03:32)xbruno1000x Escreveu:
Código:
new PlayerText:Menu_SKIN[MAX_PLAYERS][23];

Não faço ideia do porque você igual isso tudo a Invalid Textdraw, mas dessa forma deve funcionar corretamente
Olá Bruno. Eu quero fazer a textdraw sumir da tela quando ele aperta esc aí eu tentei colocar igual inválid Textdraw. E não deu certo tô doidinho aqui procurando saber como tira a textdraw da tela se puder me ajudar agradeço.

Lá no final do código eu coloquei pra destruir a textdraw mas não tá funcionando entende


RE: Problemas na textdraw - Levi.M - 17/03/2022

Fiz do jeito que sei, tenta dessa forma:
Código PHP:
//Adicione a variavel antes de OnPlayerConnect
new PlayerText:Menu_SKIN[MAX_PLAYERS][23]; 

public 
OnPlayerConnect(playerid)//Carregar as textdraw aqui
{
    
Menu_SKIN[playerid][0] = CreatePlayerTextDraw(playerid91.999908141.466644"box");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][0], 0.00000029.300003);
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][0], 570.9663080.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][0], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][0], -1);
    
PlayerTextDrawUseBox(playeridMenu_SKIN[playerid][0], 1);
    
PlayerTextDrawBoxColor(playeridMenu_SKIN[playerid][0], 16777139);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][0], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][0], -225);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][0], 1);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][0], 1);

    
Menu_SKIN[playerid][1] = CreatePlayerTextDraw(playerid492.000000148.933288"box");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][1], 0.0000001.900000);
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][1], 559.0000000.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][1], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][1], -16776961);
    
PlayerTextDrawUseBox(playeridMenu_SKIN[playerid][1], 1);
    
PlayerTextDrawBoxColor(playeridMenu_SKIN[playerid][1], -16776961);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][1], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][1], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][1], 1);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][1], 1);

    
Menu_SKIN[playerid][2] = CreatePlayerTextDraw(playerid493.500030148.766571"fechar");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][2], 0.4000001.600000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][2], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][2], 255);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][2], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][2], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][2], 2);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][2], 1);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][2], true);

    
Menu_SKIN[playerid][3] = CreatePlayerTextDraw(playerid98.299690386.999755"box");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][3], 0.0000001.388007);
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][3], 176.9013360.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][3], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][3], -1);
    
PlayerTextDrawUseBox(playeridMenu_SKIN[playerid][3], 1);
    
PlayerTextDrawBoxColor(playeridMenu_SKIN[playerid][3], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][3], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][3], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][3], 1);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][3], 1);

    
Menu_SKIN[playerid][4] = CreatePlayerTextDraw(playerid96.199676385.099884"anterior");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][4], 0.4000001.600000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][4], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][4], 255);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][4], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][4], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][4], 2);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][4], 1);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][4], true);

    
Menu_SKIN[playerid][5] = CreatePlayerTextDraw(playerid482.200012387.632873"box");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][5], 0.0000001.299999);
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][5], 563.1999510.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][5], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][5], -1);
    
PlayerTextDrawUseBox(playeridMenu_SKIN[playerid][5], 1);
    
PlayerTextDrawBoxColor(playeridMenu_SKIN[playerid][5], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][5], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][5], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][5], 1);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][5], 1);

    
Menu_SKIN[playerid][6] = CreatePlayerTextDraw(playerid487.900177385.066650"proximo");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][6], 0.4000001.600000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][6], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][6], 255);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][6], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][6], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][6], 2);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][6], 1);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][6], true);

    
Menu_SKIN[playerid][7] = CreatePlayerTextDraw(playerid490.000000179.266647"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][7], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][7], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][7], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][7], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][7], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][7], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][7], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][7], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][7], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][7], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][8] = CreatePlayerTextDraw(playerid413.000000179.233352"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][8], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][8], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][8], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][8], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][8], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][8], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][8], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][8], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][8], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][8], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][9] = CreatePlayerTextDraw(playerid102.599594146.133285"escolha_uma_skin");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][9], 0.4000001.600000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][9], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][9], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][9], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][9], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][9], 2);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][9], 1);

    
Menu_SKIN[playerid][10] = CreatePlayerTextDraw(playerid335.500091179.766662"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][10], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][10], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][10], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][10], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][10], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][10], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][10], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][10], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][10], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][10], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][11] = CreatePlayerTextDraw(playerid258.199890179.899932"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][11], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][11], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][11], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][11], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][11], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][11], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][11], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][11], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][11], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][11], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][12] = CreatePlayerTextDraw(playerid180.400085179.899948"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][12], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][12], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][12], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][12], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][12], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][12], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][12], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][12], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][12], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][12], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][13] = CreatePlayerTextDraw(playerid102.800094179.899948"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][13], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][13], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][13], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][13], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][13], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][13], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][13], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][13], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][13], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][13], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][14] = CreatePlayerTextDraw(playerid102.800109280.466705"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][14], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][14], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][14], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][14], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][14], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][14], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][14], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][14], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][14], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][14], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][15] = CreatePlayerTextDraw(playerid180.502929280.466705"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][15], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][15], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][15], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][15], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][15], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][15], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][15], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][15], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][15], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][15], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][16] = CreatePlayerTextDraw(playerid259.007720280.466705"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][16], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][16], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][16], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][16], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][16], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][16], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][16], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][16], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][16], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][16], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][17] = CreatePlayerTextDraw(playerid335.912414280.466705"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][17], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][17], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][17], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][17], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][17], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][17], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][17], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][17], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][17], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][17], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][18] = CreatePlayerTextDraw(playerid412.817108280.466705"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][18], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][18], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][18], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][18], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][18], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][18], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][18], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][18], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][18], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][18], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][19] = CreatePlayerTextDraw(playerid489.421783280.466705"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][19], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][19], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][19], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][19], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][19], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][19], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][19], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][19], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][19], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][19], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][20] = CreatePlayerTextDraw(playerid321.300384385.066436"1/1");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][20], 0.4000001.600000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][20], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][20], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][20], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][20], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][20], 1);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][20], 1);

    
Menu_SKIN[playerid][21] = CreatePlayerTextDraw(playerid189.299957385.999938"<<<<<<<<<<<<<");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][21], 0.4000001.600000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][21], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][21], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][21], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][21], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][21], 1);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][21], 1);

    
Menu_SKIN[playerid][22] = CreatePlayerTextDraw(playerid350.000000385.600219">>>>>>>>>>>>");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][22], 0.4000001.600000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][22], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][22], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][22], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][22], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][22], 1);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][22], 1);
    return 
1;
}

CMD:comprarskin(playerid)
{
    for(new 
gt 0gt 23gt++)PlayerTextDrawShow(playerid,Menu_SKIN[playerid][gt]);//Carregar as textdraws
    
SelectTextDraw(playeridVerde);// para aparecer o mouse
    
return 1;
}
public 
OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid)
{
    if(
playertextid == Menu_SKIN[playerid][2])//Fechar e destruir as textdraws
    
{
        for(new 
gt 0gt 23gt++)PlayerTextDrawHide(playerid,Menu_SKIN[playerid][gt]);//Fechar as textdraws
        
SendClientMessage(playeridVermelho"Teste");
    }
    return 
1;
}

public 
OnPlayerClickTextDraw(playeridText:clickedid)
{
    if(
clickedid == Text:INVALID_TEXT_DRAW)//Caso o clique seja inválido será destruido
    
{
        for(new 
gt 0gt 23gt++)PlayerTextDrawDestroy(playeridMenu_SKIN[playerid][gt]);//Destruir as textdraws
    
}
    return 
1;




RE: Problemas na textdraw - MiguelOFF - 17/03/2022

(17/03/2022 10:11)Levi.M Escreveu: Fiz do jeito que sei, tenta dessa forma:
Código PHP:
//Adicione a variavel antes de OnPlayerConnect
new PlayerText:Menu_SKIN[MAX_PLAYERS][23]; 

public 
OnPlayerConnect(playerid)//Carregar as textdraw aqui
{
    
Menu_SKIN[playerid][0] = CreatePlayerTextDraw(playerid91.999908141.466644"box");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][0], 0.00000029.300003);
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][0], 570.9663080.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][0], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][0], -1);
    
PlayerTextDrawUseBox(playeridMenu_SKIN[playerid][0], 1);
    
PlayerTextDrawBoxColor(playeridMenu_SKIN[playerid][0], 16777139);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][0], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][0], -225);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][0], 1);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][0], 1);

    
Menu_SKIN[playerid][1] = CreatePlayerTextDraw(playerid492.000000148.933288"box");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][1], 0.0000001.900000);
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][1], 559.0000000.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][1], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][1], -16776961);
    
PlayerTextDrawUseBox(playeridMenu_SKIN[playerid][1], 1);
    
PlayerTextDrawBoxColor(playeridMenu_SKIN[playerid][1], -16776961);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][1], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][1], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][1], 1);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][1], 1);

    
Menu_SKIN[playerid][2] = CreatePlayerTextDraw(playerid493.500030148.766571"fechar");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][2], 0.4000001.600000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][2], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][2], 255);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][2], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][2], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][2], 2);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][2], 1);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][2], true);

    
Menu_SKIN[playerid][3] = CreatePlayerTextDraw(playerid98.299690386.999755"box");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][3], 0.0000001.388007);
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][3], 176.9013360.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][3], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][3], -1);
    
PlayerTextDrawUseBox(playeridMenu_SKIN[playerid][3], 1);
    
PlayerTextDrawBoxColor(playeridMenu_SKIN[playerid][3], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][3], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][3], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][3], 1);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][3], 1);

    
Menu_SKIN[playerid][4] = CreatePlayerTextDraw(playerid96.199676385.099884"anterior");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][4], 0.4000001.600000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][4], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][4], 255);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][4], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][4], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][4], 2);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][4], 1);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][4], true);

    
Menu_SKIN[playerid][5] = CreatePlayerTextDraw(playerid482.200012387.632873"box");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][5], 0.0000001.299999);
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][5], 563.1999510.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][5], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][5], -1);
    
PlayerTextDrawUseBox(playeridMenu_SKIN[playerid][5], 1);
    
PlayerTextDrawBoxColor(playeridMenu_SKIN[playerid][5], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][5], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][5], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][5], 1);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][5], 1);

    
Menu_SKIN[playerid][6] = CreatePlayerTextDraw(playerid487.900177385.066650"proximo");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][6], 0.4000001.600000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][6], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][6], 255);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][6], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][6], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][6], 2);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][6], 1);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][6], true);

    
Menu_SKIN[playerid][7] = CreatePlayerTextDraw(playerid490.000000179.266647"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][7], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][7], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][7], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][7], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][7], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][7], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][7], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][7], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][7], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][7], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][8] = CreatePlayerTextDraw(playerid413.000000179.233352"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][8], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][8], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][8], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][8], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][8], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][8], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][8], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][8], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][8], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][8], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][9] = CreatePlayerTextDraw(playerid102.599594146.133285"escolha_uma_skin");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][9], 0.4000001.600000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][9], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][9], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][9], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][9], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][9], 2);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][9], 1);

    
Menu_SKIN[playerid][10] = CreatePlayerTextDraw(playerid335.500091179.766662"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][10], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][10], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][10], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][10], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][10], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][10], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][10], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][10], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][10], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][10], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][11] = CreatePlayerTextDraw(playerid258.199890179.899932"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][11], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][11], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][11], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][11], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][11], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][11], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][11], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][11], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][11], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][11], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][12] = CreatePlayerTextDraw(playerid180.400085179.899948"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][12], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][12], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][12], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][12], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][12], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][12], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][12], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][12], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][12], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][12], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][13] = CreatePlayerTextDraw(playerid102.800094179.899948"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][13], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][13], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][13], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][13], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][13], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][13], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][13], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][13], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][13], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][13], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][14] = CreatePlayerTextDraw(playerid102.800109280.466705"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][14], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][14], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][14], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][14], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][14], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][14], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][14], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][14], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][14], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][14], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][15] = CreatePlayerTextDraw(playerid180.502929280.466705"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][15], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][15], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][15], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][15], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][15], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][15], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][15], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][15], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][15], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][15], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][16] = CreatePlayerTextDraw(playerid259.007720280.466705"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][16], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][16], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][16], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][16], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][16], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][16], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][16], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][16], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][16], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][16], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][17] = CreatePlayerTextDraw(playerid335.912414280.466705"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][17], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][17], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][17], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][17], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][17], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][17], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][17], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][17], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][17], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][17], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][18] = CreatePlayerTextDraw(playerid412.817108280.466705"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][18], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][18], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][18], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][18], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][18], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][18], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][18], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][18], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][18], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][18], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][19] = CreatePlayerTextDraw(playerid489.421783280.466705"");
    
PlayerTextDrawTextSize(playeridMenu_SKIN[playerid][19], 69.00000093.000000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][19], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][19], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][19], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][19], -1);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][19], 5);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][19], 0);
    
PlayerTextDrawSetSelectable(playeridMenu_SKIN[playerid][19], true);
    
PlayerTextDrawSetPreviewModel(playeridMenu_SKIN[playerid][19], 26);
    
PlayerTextDrawSetPreviewRot(playeridMenu_SKIN[playerid][19], 0.0000000.0000000.0000001.000000);

    
Menu_SKIN[playerid][20] = CreatePlayerTextDraw(playerid321.300384385.066436"1/1");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][20], 0.4000001.600000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][20], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][20], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][20], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][20], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][20], 1);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][20], 1);

    
Menu_SKIN[playerid][21] = CreatePlayerTextDraw(playerid189.299957385.999938"<<<<<<<<<<<<<");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][21], 0.4000001.600000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][21], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][21], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][21], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][21], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][21], 1);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][21], 1);

    
Menu_SKIN[playerid][22] = CreatePlayerTextDraw(playerid350.000000385.600219">>>>>>>>>>>>");
    
PlayerTextDrawLetterSize(playeridMenu_SKIN[playerid][22], 0.4000001.600000);
    
PlayerTextDrawAlignment(playeridMenu_SKIN[playerid][22], 1);
    
PlayerTextDrawColor(playeridMenu_SKIN[playerid][22], -1);
    
PlayerTextDrawSetShadow(playeridMenu_SKIN[playerid][22], 0);
    
PlayerTextDrawBackgroundColor(playeridMenu_SKIN[playerid][22], 255);
    
PlayerTextDrawFont(playeridMenu_SKIN[playerid][22], 1);
    
PlayerTextDrawSetProportional(playeridMenu_SKIN[playerid][22], 1);
    return 
1;
}

CMD:comprarskin(playerid)
{
    for(new 
gt 0gt 23gt++)PlayerTextDrawShow(playerid,Menu_SKIN[playerid][gt]);//Carregar as textdraws
    SelectTextDraw(playeridVerde);// para aparecer o mouse
    
return 1;
}
public 
OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid)
{
    if(playertextid == Menu_SKIN[playerid][2])//Fechar e destruir as textdraws
    {
        for(new gt 0gt 23gt++)PlayerTextDrawHide(playerid,Menu_SKIN[playerid][gt]);//Fechar as textdraws
        
SendClientMessage(playeridVermelho"Teste");
    }
    return 
1;
}

public 
OnPlayerClickTextDraw(playeridText:clickedid)
{
    if(clickedid == Text:INVALID_TEXT_DRAW)//Caso o clique seja inválido será destruido
    
{
        for(new 
gt 0gt 23gt++)PlayerTextDrawDestroy(playeridMenu_SKIN[playerid][gt]);//Destruir as textdraws
    
}
    return 
1;


Muito Obrigado levi deu certo. eu achei interessante vc ter usado o loop for para ocultar a textdraw eu nao tinha pensado nisso. eu to aprendendo a fazer as coisas ainda, pesquisei um pouco sobre loops mas nao me aprofundei no assunto pq para mim tudo isso é muito novo. mas vou pesquisar mais a respeito e muito obrigado mais uma vez Smile


RE: Problemas na textdraw - Levi.M - 17/03/2022

Nada maninho, fico feliz em ajudar.