30.11.2015, 20:25
Hey guys i'm doing a Clickable TextDraw system but not this worked the TextDraw appear but when I click nothing happens
follows the codes below
follows the codes below
pawn Код:
Bank[16] = TextDrawCreate(315.0, 145.357772, "usebox");
TextDrawLetterSize(Bank[16], 0.000000, 4.381600);
TextDrawTextSize(Bank[16], 50.0, 175.0);
TextDrawAlignment(Bank[16], 2);
TextDrawColor(Bank[16], 0);
TextDrawUseBox(Bank[16], true);
TextDrawBoxColor(Bank[16], -1205847297);
TextDrawSetShadow(Bank[16], 0);
TextDrawSetOutline(Bank[16], 0);
TextDrawFont(Bank[16], 0);
TextDrawSetSelectable(Bank[16], 1);
pawn Код:
if(clickedid == Bank[16]) // Retirar
{
TextDrawHideForPlayer(playerid, Bank[15]);
TextDrawHideForPlayer(playerid, Bank[16]);
TextDrawHideForPlayer(playerid, Bank[17]);
TextDrawHideForPlayer(playerid, Bank[18]);
TextDrawHideForPlayer(playerid, Bank[19]);
ShowPlayerDialog(playerid, DIALOG_RETIRAR, DIALOG_STYLE_INPUT, "BANCO LS - WITHDRAW", "\n\tAmmount to withdraw\n", "Withdraw", "Cancel");
return 1;
}