[QUESTION] How to use now the TextdrawClickSystem ?
#1

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);
Reply
#2

You need to use TextDrawSetSelectable first.
Reply
#3

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);
Reply
#4

You probably didn't click the right textdraw.
Reply
#5

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);
Reply
#6

I'll try to make a tutorial today, this system looks awesome .
Reply
#7

That would be very nice.

Thank you!


Atta(Oo);
Reply
#8

https://sampwiki.blast.hk/wiki/TextDrawSetSelectable

Put this:
Код:
TextDrawSetSelectable(Textdraw0, 1);
under
Код:
Textdraw0 = TextDrawCreate( ..... );
Reply
#9

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)