Porblem with textdraws.
#1

Alright so I created a textdraw that shows the skinID of a player in an Inventory but it appears flipped like that.



even if I try to set the Z Rotation to 180 that's what I get.




here's the code

Код:
TDEditor_PTD[playerid][6] = CreatePlayerTextDraw(playerid, 30.000000, 165.208389, "");
	PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][6], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][6], 187.000000, 176.000000);
	PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][6], 1);
	PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][6], -1);
	PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][6], 0);
	PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][6], 0);
	PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][6], 0);
	PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][6], 5);
	PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][6], 0);
	PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][6], 0);
	PlayerTextDrawSetPreviewModel(playerid, TDEditor_PTD[playerid][6], 29);
	PlayerTextDrawSetPreviewRot(playerid, TDEditor_PTD[playerid][6], 0.000000, 0.000000, 180.000000, 1.000000);
Reply
#2

PHP код:
TDEditor_PTD[playerid][6] = CreatePlayerTextDraw(playerid30.000000165.200000"_");
PlayerTextDrawLetterSize(playeridTDEditor_PTD[playerid][6], 0.0000000.000000);
PlayerTextDrawTextSize(playeridTDEditor_PTD[playerid][6], 187.000000176.000000);
PlayerTextDrawAlignment(playeridTDEditor_PTD[playerid][6], 1);
PlayerTextDrawColor(playeridTDEditor_PTD[playerid][6], -1);
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][6], 0);
PlayerTextDrawSetOutline(playeridTDEditor_PTD[playerid][6], 0);
PlayerTextDrawBackgroundColor(playeridTDEditor_PTD[playerid][6], 0);
PlayerTextDrawFont(playeridTDEditor_PTD[playerid][6], 5);
PlayerTextDrawSetProportional(playeridTDEditor_PTD[playerid][6], 0);
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][6], 0);
PlayerTextDrawSetPreviewModel(playeridTDEditor_PTD[playerid][6], 29);
PlayerTextDrawSetPreviewRot(playeridTDEditor_PTD[playerid][6], 0.0000000.0000000.0000001.000000); 
Reply
#3

Quote:
Originally Posted by SkmDanny
Посмотреть сообщение
PHP код:
TDEditor_PTD[playerid][6] = CreatePlayerTextDraw(playerid30.000000165.200000"_");
PlayerTextDrawLetterSize(playeridTDEditor_PTD[playerid][6], 0.0000000.000000);
PlayerTextDrawTextSize(playeridTDEditor_PTD[playerid][6], 187.000000176.000000);
PlayerTextDrawAlignment(playeridTDEditor_PTD[playerid][6], 1);
PlayerTextDrawColor(playeridTDEditor_PTD[playerid][6], -1);
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][6], 0);
PlayerTextDrawSetOutline(playeridTDEditor_PTD[playerid][6], 0);
PlayerTextDrawBackgroundColor(playeridTDEditor_PTD[playerid][6], 0);
PlayerTextDrawFont(playeridTDEditor_PTD[playerid][6], 5);
PlayerTextDrawSetProportional(playeridTDEditor_PTD[playerid][6], 0);
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][6], 0);
PlayerTextDrawSetPreviewModel(playeridTDEditor_PTD[playerid][6], 29);
PlayerTextDrawSetPreviewRot(playeridTDEditor_PTD[playerid][6], 0.0000000.0000000.0000001.000000); 
Already said, editing the Z Rotation to 0 gave me the first image.
Reply
#4

Quote:
Originally Posted by Nru
Посмотреть сообщение
Already said, editing the Z Rotation to 0 gave me the first image.
At me is working perfectly.

Reply
#5

i think you create the textdraw twice or more
Reply
#6

If you are using TDE, be careful when you minimise your game because this is creating duplicates of your selected textdraw.
Search in your filterscript, you 100% have the skin textdraw duplicated by 2 times.
Reply
#7

I'm pretty sure that it's created only once.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)