[QUESTION] How to use now the TextdrawClickSystem ? Please Help! -
AttachObject(Oo) - 23.03.2012
Hey guys,
I simply just didn't understand how to use it.
This here:
https://sampwiki.blast.hk/wiki/OnPlayerClickTextDraw
Doesnt work for me.
I have textdraw and if i write /tutorial i have the mouse.
If i click on the Textdraw, nothing happens.
Color doesn't change and no Messeage comes.
How to use it finally ?
Would be nice if anyone make a "[TUTORIAL] How to use Selectable Textdraw's"
Atta(Oo);
Re: [QUESTION] How to use now the TextdrawClickSystem ? -
MP2 - 23.03.2012
You need to use TextDrawSetSelectable first.
AW: [QUESTION] How to use now the TextdrawClickSystem ? -
AttachObject(Oo) - 23.03.2012
Where to put ? and which parameters to use ?
I have:
Код:
if(!strcmp(cmdtext, "/mas", true))
{
for(new i = 0; i < MAX_TEXT_DRAWS; i++) TextDrawSetSelectable(Text:i, 1);
SendClientMessage(playerid, 0xFFFFFFAA, "SERVER: All textdraws can be selected now!");
return 1;
}
if(!strcmp(cmdtext, "/tdselect", true))
{
SelectTextDraw(playerid, -1);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Please select a textdraw!");
return 1;
}
After using that commands i cant select the textdraw.
Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw0)
{
// Function
SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw.");
}
}
return 1;
}
This message DOESN'T come for me.
And what means "SelectTextDraw(playerid,
hovercolor); ?
for what is this "color" ?
where to see ?
Atta(Oo);
Re: [QUESTION] How to use now the TextdrawClickSystem ? -
MP2 - 23.03.2012
You probably didn't click the right textdraw.
AW: [QUESTION] How to use now the TextdrawClickSystem ? -
AttachObject(Oo) - 24.03.2012
I Just have one :O
Textdraw0.
It's called: "Anrufen! xD!"
in Green and with White background color.
It's the only one.
And i cant click, okay i can, but nothing happens, no color changes and no message comes.
Atta(Oo);
Re: [QUESTION] How to use now the TextdrawClickSystem ? -
Hiddos - 24.03.2012
I'll try to make a tutorial today, this system looks awesome

.
AW: [QUESTION] How to use now the TextdrawClickSystem ? -
AttachObject(Oo) - 24.03.2012
That would be very nice.
Thank you!
Atta(Oo);
Re: [QUESTION] How to use now the TextdrawClickSystem ? -
IstuntmanI - 24.03.2012
https://sampwiki.blast.hk/wiki/TextDrawSetSelectable
Put this:
Код:
TextDrawSetSelectable(Textdraw0, 1);
under
Код:
Textdraw0 = TextDrawCreate( ..... );
Re: AW: [QUESTION] How to use now the TextdrawClickSystem ? -
Hiddos - 24.03.2012
Quote:
Originally Posted by AttachObject(Oo)
That would be very nice.
Thank you!
Atta(Oo);
|
So try this out:
https://sampforum.blast.hk/showthread.php?tid=328267