Clickable TextDraw bug?
#1

SOLVED
The text size can not be 0.000000(In X or Y sizes)!
Example 1: PlayerTextDrawTextSize(playerid, TextTabletDesktop[playerid][10], 0.000000, 39.500000);//BUG
Example 2: PlayerTextDrawTextSize(playerid, TextTabletDesktop[playerid][10], 10.000000, 39.500000);//NICE

__________________________________________________ _______________
I need a little help ...
When I try to select a TexDraw, several are selected at the same time.
What is this?
See the images and code bellow...
Thanks!




pawn Код:
TextTabletDesktop[playerid][61] = CreatePlayerTextDraw(playerid, 229.500000, 277.111145, "Trophies");
PlayerTextDrawLetterSize(playerid, TextTabletDesktop[playerid][61], 0.173499, 0.778665);
PlayerTextDrawAlignment(playerid, TextTabletDesktop[playerid][61], 1);
PlayerTextDrawColor(playerid, TextTabletDesktop[playerid][61], -1);
PlayerTextDrawSetShadow(playerid, TextTabletDesktop[playerid][61], 0);
PlayerTextDrawSetOutline(playerid, TextTabletDesktop[playerid][61], 1);
PlayerTextDrawBackgroundColor(playerid, TextTabletDesktop[playerid][61], 255);
PlayerTextDrawFont(playerid, TextTabletDesktop[playerid][61], 1);
PlayerTextDrawSetProportional(playerid, TextTabletDesktop[playerid][61], 1);
PlayerTextDrawSetSelectable(playerid, TextTabletDesktop[playerid][61], true);

TextTabletDesktop[playerid][62] = CreatePlayerTextDraw(playerid, 258.500000, 277.111145, "Games");
PlayerTextDrawLetterSize(playerid, TextTabletDesktop[playerid][62], 0.173499, 0.778665);
PlayerTextDrawAlignment(playerid, TextTabletDesktop[playerid][62], 1);
PlayerTextDrawColor(playerid, TextTabletDesktop[playerid][62], -1);
PlayerTextDrawSetShadow(playerid, TextTabletDesktop[playerid][62], 0);
PlayerTextDrawSetOutline(playerid, TextTabletDesktop[playerid][62], 1);
PlayerTextDrawBackgroundColor(playerid, TextTabletDesktop[playerid][62], 255);
PlayerTextDrawFont(playerid, TextTabletDesktop[playerid][62], 1);
PlayerTextDrawSetProportional(playerid, TextTabletDesktop[playerid][62], 1);
PlayerTextDrawSetSelectable(playerid, TextTabletDesktop[playerid][62], true);
pawn Код:
for(new i; i < 63; i++)
{
    PlayerTextDrawShow(playerid, TextTabletDesktop[playerid][i]);
}
SelectTextDraw(playerid, 0xAFAFAF77);
Reply
#2

You didn't set the TextSize and you will have issues with center alignment.

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

But when I set the textsize the textdraws can't be selected...
pawn Код:
PlayerTextDrawTextSize(playerid, TextTabletDesktop[playerid][61], 0.173499, 0.778665);
Note: Text size is needed only if I use box?
Note 2: If the textsize is needed, needs be the same size of lettersize?
Reply
#4

Quote:
Originally Posted by Pottus
Посмотреть сообщение
You didn't set the TextSize and you will have issues with center alignment.

https://sampwiki.blast.hk/wiki/PlayerTextDrawTextSize
SOLVED... Thanks, Rep+!
The bug was in TextDraw Editor that not saved the TextSize, now is fine!
Reply
#5

Quote:
Originally Posted by JR_Junior
Посмотреть сообщение
SOLVED... Thanks, Rep+!
The bug was in TextDraw Editor that not saved the TextSize, now is fine!
What editor are you actually use? I have the same problem.
Reply
#6

Quote:
Originally Posted by ExTaZZ69
Посмотреть сообщение
What editor are you actually use? I have the same problem.
Fuck, is not solved, don't work and the textdraw can't be selected after use textsize!!!

The editor is Adr1 TextDraw Editor 1.13E!
Reply
#7

NOW IS SOLVED 100%

The text size can not be 0.000000(In X or Y sizes)!
Example 1: PlayerTextDrawTextSize(playerid, TextTabletDesktop[playerid][10], 0.000000, 39.500000);//BUG
Example 2: PlayerTextDrawTextSize(playerid, TextTabletDesktop[playerid][10], 10.000000, 39.500000);//NICE
Reply
#8

Quote:
Originally Posted by JR_Junior
Посмотреть сообщение
NOW IS SOLVED 100%

The text size can not be 0.000000(In X or Y sizes)!
Example 1: PlayerTextDrawTextSize(playerid, TextTabletDesktop[playerid][10], 0.000000, 39.500000);//BUG
Example 2: PlayerTextDrawTextSize(playerid, TextTabletDesktop[playerid][10], 10.000000, 39.500000);//NICE
How do you know the coordinates? I use same editor and it don't save the TextSize.
Reply
#9

Quote:
Originally Posted by ExTaZZ69
Посмотреть сообщение
How do you know the coordinates? I use same editor and it don't save the TextSize.
Me too... I have TDEditor and when i create some word with "Selectable" and with box, i cant set the Y axis. And i dont know how to get the exact coordinates for use, i need to Manually put and giving GMX on GM and testing... but this is so anoying!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)