24.03.2016, 13:12
Hi guys,
I made my tds for signup semi transparent, also I added semi transparent outline to them. Tds look fine but when I click on it(eg. td for password), callback OnPlayerClickPlayerTextDraw won't be called.
I added print on the top in callback but I don't see that print in log.
I made my tds for signup semi transparent, also I added semi transparent outline to them. Tds look fine but when I click on it(eg. td for password), callback OnPlayerClickPlayerTextDraw won't be called.
Код:
_HRP_TD_RegOOC[_playerid][2] = CreatePlayerTextDraw(_playerid, 188.962738, 223.719711, "Zaporka"); PlayerTextDrawLetterSize(_playerid, _HRP_TD_RegOOC[_playerid][2], 0.258332, 1.293037); PlayerTextDrawTextSize(_playerid, _HRP_TD_RegOOC[_playerid][2], 239.000000, 0.000000); PlayerTextDrawAlignment(_playerid, _HRP_TD_RegOOC[_playerid][2], 1); PlayerTextDrawColor(_playerid, _HRP_TD_RegOOC[_playerid][2], -120); PlayerTextDrawSetShadow(_playerid, _HRP_TD_RegOOC[_playerid][2], 0); PlayerTextDrawSetOutline(_playerid, _HRP_TD_RegOOC[_playerid][2], 1); PlayerTextDrawBackgroundColor(_playerid, _HRP_TD_RegOOC[_playerid][2], 52); PlayerTextDrawFont(_playerid, _HRP_TD_RegOOC[_playerid][2], 2); PlayerTextDrawSetProportional(_playerid, _HRP_TD_RegOOC[_playerid][2], 1); PlayerTextDrawSetSelectable(_playerid, _HRP_TD_RegOOC[_playerid][2], true); if(playertextid == _HRP_TD_RegOOC[playerid][2]) // UNOS ZAPORKE { CancelSelectTextDraw(playerid); _HRP_Dialog(playerid, _HRP_DIALOG_REG_ZAPORKA, DIALOG_STYLE_INPUT, "Unesite zaporku", ""_HRP_BIJELA"Unesite Vaљu ћeljenu zaporku.\nDuћina zaporke mora biti između "#_HRP_MIN_PW_LEN" i "#_HRP_MAX_PW_LEN" znakova.\nTakođer ne smije sadrћavati dio imena.", "Potvrdi", "Izađi"); return (true); }