18.03.2018, 12:06
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?
This is in OnPlayerRequestClass:
And this is in OnPlayerClickPlayerTextDraw:
Sorry for my bad English.
Код:
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);
Код:
SelectTextDraw(playerid, 0xC9C9C9AA); PlayerTextDrawShow(playerid, InsertPasswordClicable[playerid][0]);
Код:
if(playertextid == InsertPasswordClicable[playerid][0]) { Dialog_Show(playerid, DialogLogin, DIALOG_STYLE_PASSWORD, "Password", "Inserisci la tua password", "Inserisci", ""); printf("InsertPasswordClicable[playerid][0] - Cliccato!"); }