Selectabe textdraw don't work
#1

Код:
InvSelect[0][playerid] = CreatePlayerTextDraw(playerid, 610.000000, 177.2, "usebox");
PlayerTextDrawTextSize(playerid, InvSelect[0][playerid], 350.0, 20.0);
PlayerTextDrawAlignment(playerid, InvSelect[0][playerid], 1);
PlayerTextDrawUseBox(playerid,InvSelect[0][playerid], 1);
PlayerTextDrawBoxColor(playerid, InvSelect[0][playerid], 0xE9E9E950);
PlayerTextDrawColor(playerid, InvSelect[0][playerid], 0);
PlayerTextDrawSetSelectable(playerid, InvSelect[0][playerid], true);
PlayerTextDrawFont(playerid, InvSelect[0][playerid], 1);
When I enter selectable mode I can't select this textdraw. What's the problem? Increasing or decreasing PlayerTextDrawTextSize didn't helped.
Reply
#2

https://sampwiki.blast.hk/wiki/PlayerTextDrawSetSelectable
Reply
#3

EDIT__

try this

change

Код:
PlayerTextDrawAlignment(playerid, InvSelect[0][playerid], 1);
by
Код:
PlayerTextDrawAlignment(playerid, InvSelect[0][playerid], 2);
Reply
#4

And?


Quote:
Originally Posted by Minikole
Посмотреть сообщение
EDIT__

try this

change

Код:
PlayerTextDrawAlignment(playerid, InvSelect[0][playerid], 1);
by
Код:
PlayerTextDrawAlignment(playerid, InvSelect[0][playerid], 2);
Don't work.
Reply
#5

Help
Reply
#6

Help
Reply
#7

try make another textdraw
Reply
#8

Quote:
Originally Posted by lanix
Посмотреть сообщение
try make another textdraw
... nice advice. How another textdraw is gonna solve my problem?
Reply
#9

Quote:
Originally Posted by ax1
Посмотреть сообщение
... nice advice. How another textdraw is gonna solve my problem?
You could have some better attitude people are trying to help you...

Are you using SelectTextDraw ?
https://sampwiki.blast.hk/wiki/SelectTextDraw

Remember PlayerTextDrawSetSelectable MUST be used BEFORE the textdraw is shown to the player.
https://sampwiki.blast.hk/wiki/PlayerTextDrawSetSelectable
Reply
#10

Quote:
Originally Posted by Andre02
Посмотреть сообщение
You could have some better attitude people are trying to help you...

Are you using SelectTextDraw ?
https://sampwiki.blast.hk/wiki/SelectTextDraw

Remember PlayerTextDrawSetSelectable MUST be used BEFORE the textdraw is shown to the player.
https://sampwiki.blast.hk/wiki/PlayerTextDrawSetSelectable
Yes I'm using SelectTextDraw and PlayerTextDrawSetSelectable is used before textdraw is shown to the player. Bu for example I'm trying to click on TEXT textdraws and It works on them (for example http://ft2.dtupload.com/MoXz/sa-mp-047.png it works if I click word hey). Only BOX textdraws aren't working.

And what's wrong with my attitude? I wasn't mean or anything.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)