04/01/2022 18:26
Olá a todos, sou novo aqui e estou tendo um problema com PlayerTextDraw selecionáveis há uns 4 dias. O problema é que ao mostrar as TextDraws para o player, não aparece o ponteiro para as selecionáveis
Código:
===============================================
enum BANK_PANEL: {
PlayerText:bank_panel_sair
};
new bankPanel[MAX_PLAYERS][BANK_PANEL];
stock BANK_ShowPanel(playerid) {
bankPanel[playerid][bank_panel_sair] = CreatePlayerTextDraw(playerid, 580.000000, 380.000000, "Sair");
PlayerTextDrawLetterSize(playerid, bankPanel[playerid][bank_panel_sair], 0.300000, 1.500000);
PlayerTextDrawTextSize(playerid, bankPanel[playerid][bank_panel_sair], 0.000000, 100.000000);
PlayerTextDrawAlignment(playerid, bankPanel[playerid][bank_panel_sair], 2);
PlayerTextDrawColor(playerid, bankPanel[playerid][bank_panel_sair], -1);
PlayerTextDrawSetShadow(playerid, bankPanel[playerid][bank_panel_sair], 0);
PlayerTextDrawBackgroundColor(playerid, bankPanel[playerid][bank_panel_sair], 255);
PlayerTextDrawFont(playerid, bankPanel[playerid][bank_panel_sair], 2);
PlayerTextDrawSetProportional(playerid, bankPanel[playerid][bank_panel_sair], 1);
PlayerTextDrawSetSelectable(playerid, bankPanel[playerid][bank_panel_sair], true);
PlayerTextDrawShow(playerid bankPanel[playerid][bank_panel_sair]);
return true;
}
===============================================
Eu chamo a função certinho e até aparecem as TextDraws, mas não tem como clicar nelas, se alguém puder me ajudar, desde já, agradeço
Código:
===============================================
enum BANK_PANEL: {
PlayerText:bank_panel_sair
};
new bankPanel[MAX_PLAYERS][BANK_PANEL];
stock BANK_ShowPanel(playerid) {
bankPanel[playerid][bank_panel_sair] = CreatePlayerTextDraw(playerid, 580.000000, 380.000000, "Sair");
PlayerTextDrawLetterSize(playerid, bankPanel[playerid][bank_panel_sair], 0.300000, 1.500000);
PlayerTextDrawTextSize(playerid, bankPanel[playerid][bank_panel_sair], 0.000000, 100.000000);
PlayerTextDrawAlignment(playerid, bankPanel[playerid][bank_panel_sair], 2);
PlayerTextDrawColor(playerid, bankPanel[playerid][bank_panel_sair], -1);
PlayerTextDrawSetShadow(playerid, bankPanel[playerid][bank_panel_sair], 0);
PlayerTextDrawBackgroundColor(playerid, bankPanel[playerid][bank_panel_sair], 255);
PlayerTextDrawFont(playerid, bankPanel[playerid][bank_panel_sair], 2);
PlayerTextDrawSetProportional(playerid, bankPanel[playerid][bank_panel_sair], 1);
PlayerTextDrawSetSelectable(playerid, bankPanel[playerid][bank_panel_sair], true);
PlayerTextDrawShow(playerid bankPanel[playerid][bank_panel_sair]);
return true;
}
===============================================
Eu chamo a função certinho e até aparecem as TextDraws, mas não tem como clicar nelas, se alguém puder me ajudar, desde já, agradeço