Bug? with selectable textdraws
#1

Hey.

I don't know it's a bug but..

If we have enabled select textdraw:
Код:
SelectTextDraw(...);
and we push ESC - we can't do anything - cursor disappear.
We can't detect ESC key (OnPlayerKeyStateChange) because SA-MP doesn't support this.

What we can to do?
Reply
#2

When you click ESC, https://sampwiki.blast.hk/wiki/OnPlayerClickTextDraw is called with clickedid = INVALID_TEXT_DRAW
Reply
#3

It's make no sense, and it's too difficult for scripters...
What if I have 100+ selectable textdraws? (WTF?!)
I must check all of them? It's really make no sense.
Reply
#4

or you can simplly use OnPlayerClickTextDraw {if i am not wrong} and under it use TD ids as in dialog ids..
like,
PHP код:
 if(textdrawid == TD_HELP)
{
  return 
cmd_help(playeridparams);

Reply
#5

But there's another bug?

If I check textdraws:
Код:
if(clickedid == Text:INVALID_TEXT_DRAW) // Without Text: = tag mismatch
my textdraws closed. In first time nothing doing, but second time - textdraws hided.

What? ;o


PS. Ok my bad..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)