Player can't click TextDraw
#1

Hi, I'm having problems with some TextDraw (the ones to login), practically none of it can be clicked even if they have been set clickable and this makes me very puzzled, could you help me?

Код:
InsertPasswordClicable[playerid][0] = CreatePlayerTextDraw(playerid, 232.999984, 220.281478, "password");
PlayerTextDrawLetterSize(playerid, InsertPasswordClicable[playerid][0], 0.000000, 1.433333);
PlayerTextDrawTextSize(playerid, InsertPasswordClicable[playerid][0], 395.000000, 0.000000);
PlayerTextDrawAlignment(playerid, InsertPasswordClicable[playerid][0], 1);
PlayerTextDrawColor(playerid, InsertPasswordClicable[playerid][0], -1);
PlayerTextDrawUseBox(playerid, InsertPasswordClicable[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, InsertPasswordClicable[playerid][0], 255);
PlayerTextDrawSetShadow(playerid, InsertPasswordClicable[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, InsertPasswordClicable[playerid][0], 255);
PlayerTextDrawFont(playerid, InsertPasswordClicable[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, InsertPasswordClicable[playerid][0], 1);
PlayerTextDrawSetSelectable(playerid, InsertPasswordClicable[playerid][0], 1);
PlayerTextDrawSetOutline(playerid, InsertPasswordClicable[playerid][0], 0);
This is in OnPlayerRequestClass:

Код:
SelectTextDraw(playerid, 0xC9C9C9AA);
PlayerTextDrawShow(playerid, InsertPasswordClicable[playerid][0]);
And this is in OnPlayerClickPlayerTextDraw:

Код:
if(playertextid == InsertPasswordClicable[playerid][0])
{
    Dialog_Show(playerid, DialogLogin, DIALOG_STYLE_PASSWORD, "Password", "Inserisci la tua password", "Inserisci", "");
    printf("InsertPasswordClicable[playerid][0] - Cliccato!");
}
Sorry for my bad English.
Reply
#2

Код:
PlayerTextDrawTextSize(playerid, InsertPasswordClicable[playerid][0], 395.000000, 0.000000);
The height must not be 0.

Try:
Код:
PlayerTextDrawTextSize(playerid, InsertPasswordClicable[playerid][0], 395.000000, 15.000000);
Reply
#3

It works!
Thanks so much.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)