TextDraw can't selection
#1

Im using TextDraw for my login system, but i can't select them.

There is my textdraw on gamemodeint

Quote:

Textdraw13 = TextDrawCreate(532.399597, 143.857711, "Information");
TextDrawLetterSize(Textdraw13, 0.235999, 1.450666);
TextDrawTextSize(Textdraw13, 598.399780, -63.217769);
TextDrawAlignment(Textdraw13, 1);
TextDrawColor(Textdraw13, -1);
TextDrawUseBox(Textdraw13, true);
TextDrawBoxColor(Textdraw13, 255);
TextDrawSetShadow(Textdraw13, 0);
TextDrawSetOutline(Textdraw13, 1);
TextDrawBackgroundColor(Textdraw13, 51);
TextDrawFont(Textdraw13, 2);
TextDrawSetProportional(Textdraw13, 1);
TextDrawSetSelectable(Textdraw13, true);

Textdraw14 = TextDrawCreate(503.199798, 104.533378, "Login");
TextDrawLetterSize(Textdraw14, 0.257200, 2.22719;
TextDrawTextSize(Textdraw14, 627.999877, -74.168869);
TextDrawAlignment(Textdraw14, 1);
TextDrawColor(Textdraw14, -1);
TextDrawUseBox(Textdraw14, true);
TextDrawBoxColor(Textdraw14, 255);
TextDrawSetShadow(Textdraw14, 0);
TextDrawSetOutline(Textdraw14, 1);
TextDrawBackgroundColor(Textdraw14, 255);
TextDrawFont(Textdraw14, 2);
TextDrawSetProportional(Textdraw14, 1);
TextDrawSetSelectable(Textdraw14, true);

And there is funtion selection

Quote:

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw14)
{
SendClientMessage(playerid, 0xFFFFFFAA, "Test Login SYstem.");
CancelSelectTextDraw(playerid);
}
if(clickedid == TextDraw13)
{
SendClientMessage(playerid, 0xFFFFFFAA, "Test Login SYstem.");
CancelSelectTextDraw(playerid);
}
return 1;
}

When Moving Mouse on the textdraw they did'nt change color anyone can help me pls. +rep thanks you
Reply
#2

anyone can help me ?
Reply
#3

I Think You are Missing Something Very Important.... Again Read Clickable Textdraw on wiki.samp or in forum
Reply
#4

The clickable area is defined in this function
TextDrawTextSize(Textdraw14, 627.999877, -74.168869);
change the -74 to a postive number and see if thats good you'll need to adjust it so its the right size.
Reply
#5

ok im try that and confirm soon thanks you
Reply
#6

Is Worked now, better for Login button but Infomation still don't work. Now i can fix my textdraw Thanks everyone helped !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)