samp-textdraw-streamer icon indicating copy to clipboard operation
samp-textdraw-streamer copied to clipboard

does it work on filterscripts ?

Open 0Phucdiamond opened this issue 1 year ago • 5 comments

sa-mp-000

These are my includes and plugins: #define FILTERSCRIPT #define SSCANF_NO_NICE_FEATURES #define MALLOC_MEMORY (50000000) #define YSI_YES_HEAP_MALLOC #define YSI_NO_MASTER #define YSI_NO_VERSION_CHECK #define YSI_NO_OPTIMISATION_MESSAGE #define YSI_NO_CACHE_MESSAGE #define CGEN_MEMORY 150000 #include open.mp #include YSI_Coding\y_va #include YSI_Coding\y_timers #include YSI_Data\y_iterate #include sscanf2 #include streamer #include progress2 #include textdraw-streamer

plugins crashdetect.dll Whirlpool.dll streamer.dll audio.dll GPS.dll mysql.dll mapandreas.dll pawn-memory.dll textdraw-streamer.dll

and I got back a lot of these lines in cmd

DynamicTextDrawHideForPlayer: No such id was found. (textId: 0)
DynamicTextDrawHideForPlayer: No such id was found. (textId: 0)
DynamicTextDrawHideForPlayer: No such id was found. (textId: 0)
DynamicTextDrawHideForPlayer: No such id was found. (textId: 0)
DynamicTextDrawHideForPlayer: No such id was found. (textId: 0)
DynamicTextDrawHideForPlayer: No such id was found. (textId: 0)
...

log.txt

I used textdraw-streamer in 1 filterscripts, I don't think I did it wrong. I look forward to your response, thank you

0Phucdiamond avatar Jan 04 '24 08:01 0Phucdiamond

which version are you using?

nexquery avatar Jan 04 '24 08:01 nexquery

i am using the latest version of textdraw-streamer https://github.com/nexquery/samp-textdraw-streamer/releases/tag/v2.0.3-hotfix

which version are you using?

0Phucdiamond avatar Jan 04 '24 08:01 0Phucdiamond

I'll test if it works in Filterscripts, it could be a plugin problem.

nexquery avatar Jan 04 '24 09:01 nexquery

This is how I created a new textdraw and installed it maybe you will need it

        BoxTD[playerid][0] = CreatePlayerTextDraw(playerid, 73.000000, 151.000000, "Preview_Model");
	PlayerTextDrawFont(playerid, BoxTD[playerid][0], 5);
	PlayerTextDrawLetterSize(playerid, BoxTD[playerid][0], 0.600000, 2.000000);
	PlayerTextDrawTextSize(playerid, BoxTD[playerid][0], 51.000000, 56.000000);
	PlayerTextDrawSetOutline(playerid, BoxTD[playerid][0], 0);
	PlayerTextDrawSetShadow(playerid, BoxTD[playerid][0], 0);
	PlayerTextDrawAlignment(playerid, BoxTD[playerid][0], 1);
	PlayerTextDrawColour(playerid, BoxTD[playerid][0], -1);
	PlayerTextDrawBackgroundColour(playerid, BoxTD[playerid][0], 125);
	PlayerTextDrawBoxColour(playerid, BoxTD[playerid][0], 255);
	PlayerTextDrawUseBox(playerid, BoxTD[playerid][0], 0);
	PlayerTextDrawSetProportional(playerid, BoxTD[playerid][0], 1);
	PlayerTextDrawSetSelectable(playerid, BoxTD[playerid][0], 1);
	PlayerTextDrawSetPreviewModel(playerid, BoxTD[playerid][0], 4721);
	PlayerTextDrawSetPreviewRot(playerid, BoxTD[playerid][0], -10.000000, 0.000000, -20.000000, 1.000000);
	PlayerTextDrawSetPreviewVehicleColours(playerid, BoxTD[playerid][0], 1, 1);

        TD_Global[playerid][0] = TextDrawCreate(TD_Global[playerid][0], 403.000000, 140.000000, "_");
	TextDrawFont(TD_Global[playerid][0], 1);
	TextDrawLetterSize(TD_Global[playerid][0], 0.600000, 31.100009);
	TextDrawTextSize(TD_Global[playerid][0], 298.500000, 394.500000);
	TextDrawSetOutline(TD_Global[playerid][0], 1);
	TextDrawSetShadow(TD_Global[playerid][0], 0);
	TextDrawAlignment(TD_Global[playerid][0], 2);
	TextDrawColour(TD_Global[playerid][0], -1);
	TextDrawBackgroundColour(TD_Global[playerid][0], 255);
	TextDrawBoxColour(TD_Global[playerid][0], 135);
	TextDrawUseBox(TD_Global[playerid][0], 1);
	TextDrawSetProportional(TD_Global[playerid][0], 1);
	TextDrawSetSelectable(TD_Global[playerid][0], 0);

0Phucdiamond avatar Jan 04 '24 09:01 0Phucdiamond

I also tested it on an empty server and it seems to be working properly.

nexquery avatar Jan 04 '24 09:01 nexquery