Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does it work on filterscripts ? #21

Open
0Phucdiamond opened this issue Jan 4, 2024 · 5 comments
Open

does it work on filterscripts ? #21

0Phucdiamond opened this issue Jan 4, 2024 · 5 comments

Comments

@0Phucdiamond
Copy link

0Phucdiamond commented Jan 4, 2024

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

@nexquery
Copy link
Owner

nexquery commented Jan 4, 2024

which version are you using?

@0Phucdiamond
Copy link
Author

0Phucdiamond commented Jan 4, 2024

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?

@nexquery
Copy link
Owner

nexquery commented Jan 4, 2024

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

@0Phucdiamond
Copy link
Author

0Phucdiamond commented Jan 4, 2024

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

@nexquery
Copy link
Owner

nexquery commented Jan 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants