SA-MP Forums Archive
TextDraw can't selection - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TextDraw can't selection (/showthread.php?tid=533063)



TextDraw can't selection - ScorpiusMalfoy - 22.08.2014

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


Re: TextDraw can't selection - ScorpiusMalfoy - 22.08.2014

anyone can help me ?


Re: TextDraw can't selection - TheRaGeLord - 22.08.2014

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


Re: TextDraw can't selection - wooolly - 22.08.2014

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.


Re: TextDraw can't selection - ScorpiusMalfoy - 22.08.2014

ok im try that and confirm soon thanks you


Re: TextDraw can't selection - ScorpiusMalfoy - 22.08.2014

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