nexquery / samp-textdraw-streamer

A simple plugin for sa-mp and open.mp to break the limits of textdrawings.
Apache License 2.0
33 stars 5 forks source link

[textdraw.streamer] DynamicTextDrawSetString: An item for this ID could not be found #11

Closed afeefmali closed 6 months ago

afeefmali commented 1 year ago

How to solve this

nexquery commented 1 year ago

Are you sure you're creating the text drawing correctly?

afeefmali commented 1 year ago

I created td using ntd

nexquery commented 1 year ago

Manually create your text drawings and test again. Manual functions

afeefmali commented 1 year ago

homescreenorg(phone).zip

afeefmali commented 1 year ago

How to convert it?

afeefmali commented 1 year ago

Your dc id?

afeefmali commented 1 year ago

Hlo

afeefmali commented 1 year ago

@nexquery

nexquery commented 1 year ago

You don't have to convert them all. Convert one and test it.

PlayerTD[playerid][45] = CreateDynamicPlayerTextDraw(playerid, 495.000000, 234.000000, "10:00");
DynamicPlayerTextDrawFont(playerid, PlayerTD[playerid][45], 2);
DynamicPlayerTextDrawLetterSize(playerid, PlayerTD[playerid][45], 0.474999, 2.549998);
DynamicPlayerTextDrawTextSize(playerid, PlayerTD[playerid][45], 400.000000, 17.000000);
DynamicPlayerTextDrawSetOutline(playerid, PlayerTD[playerid][45], 0);
DynamicPlayerTextDrawSetShadow(playerid, PlayerTD[playerid][45], 0);
DynamicPlayerTextDrawAlignment(playerid, PlayerTD[playerid][45], 1);
DynamicPlayerTextDrawColour(playerid, PlayerTD[playerid][45], -1);
DynamicPlayerTextDrawBGColour(playerid, PlayerTD[playerid][45], 255);
DynamicPlayerTextDrawBoxColor(playerid, PlayerTD[playerid][45], 50);
DynamicPlayerTextDrawUseBox(playerid, PlayerTD[playerid][45], 0);
DynPlayerTextSetProportional(playerid, PlayerTD[playerid][45], 1);
DynamicPlayerTextDrawSelectable(playerid, PlayerTD[playerid][45], 0);
if(IsValidDynamicPlayerTextDraw(playerid, PlayerTD[playerid][45]))
{
    // Valid
}
else
{
    // Invalid
}
nexquery commented 1 year ago

Also the thread title states that you have created a Global Textdraw. Your Textdraw is set to Player.