Textdraw click doesn't response - 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 click doesn't response (
/showthread.php?tid=554406)
Textdraw click doesn't response -
cnoopers - 03.01.2015
TextSize is correct, so what's bad?
made by iTD.
Код:
colors6 = TextDrawCreate(141.500000, 339.687500, "usebox");
TextDrawLetterSize(colors6, 0.000000, 1.579166);
TextDrawTextSize(colors6, 115.000000, 115.000000);
TextDrawAlignment(colors6, 1);
TextDrawColor(colors6, 0);
TextDrawUseBox(colors6, true);
TextDrawBoxColor(colors6 , 1245987583);
TextDrawSetShadow(colors6, 0);
TextDrawSetOutline(colors6, 0);
TextDrawFont(colors6, 0);
TextDrawSetSelectable(colors6, true);
Re: Textdraw click doesn't response -
LivingLikeYouDo - 03.01.2015
What your topic is relevant to and what your code is relevant to?
Show me the place where you show the textdraw, and OnPlayerSelectTextdraw callback.
Re: Textdraw click doesn't response -
cnoopers - 03.01.2015
OnPlayerClickTextDraw
code is doesn't work because something is wrong with textdraw, not here.
Код:
if(clickedid == Text:colors6)
{
if(actualcar[playerid] == 503)
{
ChangeVehicleColor(playerscar[playerid], 252, classccolor2[playerid]);
}else if(actualcar[playerid] == 494)
{
ChangeVehicleColor(playerscar[playerid], 252, classbcolor2[playerid]);
}else if(actualcar[playerid] == 502)
{
ChangeVehicleColor(playerscar[playerid], 252, classacolor2[playerid]);
}
}
Re: Textdraw click doesn't response -
cnoopers - 03.01.2015
anyone?