TD Clickable doesn't work
#1

PHP код:
WelcomeRegLog[playerid][5] = CreatePlayerTextDraw(playerid286.133270170.646728"Register");
PlayerTextDrawLetterSize(playeridWelcomeRegLog[playerid][5], 0.4000001.600000);
PlayerTextDrawColor(playeridWelcomeRegLog[playerid][5], -1);
PlayerTextDrawSetShadow(playeridWelcomeRegLog[playerid][5], 0);
PlayerTextDrawSetOutline(playeridWelcomeRegLog[playerid][5], 0);
PlayerTextDrawBackgroundColor(playeridWelcomeRegLog[playerid][5], 255);
PlayerTextDrawFont(playeridWelcomeRegLog[playerid][5], 3);
PlayerTextDrawSetProportional(playeridWelcomeRegLog[playerid][5], 1);
PlayerTextDrawSetShadow(playeridWelcomeRegLog[playerid][5], 0);
PlayerTextDrawTextSize(playeridWelcomeRegLog[playerid][5], 85.040.0);
PlayerTextDrawSetSelectable(playeridWelcomeRegLog[playerid][5], true); 
PHP код:
WelcomeRegLog[playerid][8] = CreatePlayerTextDraw(playerid296.233886202.348663"Login");
PlayerTextDrawLetterSize(playeridWelcomeRegLog[playerid][8], 0.4000001.600000);
PlayerTextDrawColor(playeridWelcomeRegLog[playerid][8], -1);
PlayerTextDrawSetShadow(playeridWelcomeRegLog[playerid][8], 0);
PlayerTextDrawSetOutline(playeridWelcomeRegLog[playerid][8], 0);
PlayerTextDrawBackgroundColor(playeridWelcomeRegLog[playerid][8], 255);
PlayerTextDrawFont(playeridWelcomeRegLog[playerid][8], 3);
PlayerTextDrawSetProportional(playeridWelcomeRegLog[playerid][8], 1);
PlayerTextDrawSetShadow(playeridWelcomeRegLog[playerid][8], 0);
PlayerTextDrawTextSize(playeridWelcomeRegLog[playerid][8], 85.040.0);
PlayerTextDrawSetSelectable(playeridWelcomeRegLog[playerid][8], true); 
Clickable area doesn't work. I set textsize to different sizes, but no help
Reply
#2

have you used this somewhere?
https://sampwiki.blast.hk/wiki/SelectTextdraw

like at OnPlayerConnect or OnPlayerRequestClass? this function will enable the text-selecting for each textdraw you have set it select-able
Reply
#3

No, no. SelectTexrDraw works good but clickable area is "empty". I drag the mouse over TD, but nothing happen, doesn't change color.
Reply
#4

could be something with textsizes, i recommend you to do these with a textdraw editor:

- make the text box visible ( i mean set it's color to something a bit transparent )
- make sure that the box of the text is over it all (if not, change it's size until it be comes over the whole text)
still you need to make it transparent so that you can see the text.
- save the box size which be came over all the text, and copy it's new size only without the rest of code (which will be generated in a "TextDrawTextSize" code, if you use a textdraw editor, i assume that's common between textdraw editors so...

or, try something higher than 85 and 40
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)