SA-MP Forums Archive
Porblem with textdraws. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Porblem with textdraws. (/showthread.php?tid=653021)



Porblem with textdraws. - Nru - 24.04.2018

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);



Re: Porblem with textdraws. - SkmDanny - 24.04.2018

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); 



Re: Porblem with textdraws. - Nru - 24.04.2018

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.


Re: Porblem with textdraws. - SkmDanny - 24.04.2018

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




Re: Porblem with textdraws. - Lokii - 24.04.2018

i think you create the textdraw twice or more


Re: Porblem with textdraws. - SkmDanny - 24.04.2018

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.


Re: Porblem with textdraws. - Nru - 24.04.2018

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