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);
for(new i; i < 63; i++)
{
PlayerTextDrawShow(playerid, TextTabletDesktop[playerid][i]);
}
SelectTextDraw(playerid, 0xAFAFAF77);
PlayerTextDrawTextSize(playerid, TextTabletDesktop[playerid][61], 0.173499, 0.778665);
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! |
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.
|