Textdraws BUG
#1

Hello, I need help with textdraws. Then one textdraw shows the other one moves into showed textdraw. How can I fix it?

Some photos:


Working normally -


Showing other text draw and moving into it -
Reply
#2

Show your TD code and TD update code there is some good helpers here but none of us have a magic wand or are mind readers.
Reply
#3

Sorry, I Forgot to show the code.

It's bugging then i show this textdraw. If I remove clock filterscript it's bugging with Esfg.Lt (In the left bottom corner) TD
Code:

new Text: PlayerInfoText[MAX_PLAYERS_IN_SERVER];


ShowInfoText(playerid, "~r~Testing!", 3000, true);

stock Text: CreateInfoText(text[])
{
new Text: InfoTextdraw;

InfoTextdraw = TextDrawCreate(13, 150, text);
TextDrawUseBox(InfoTextdraw, 1);
TextDrawBoxColor(InfoTextdraw, 0x00000099);
TextDrawTextSize(InfoTextdraw, 159, 81);
TextDrawAlignment(InfoTextdraw, 0);
TextDrawBackgroundColor(InfoTextdraw, 0x000000ff);
TextDrawFont(InfoTextdraw, 1);
TextDrawLetterSize(InfoTextdraw, 0.33, 1);
TextDrawColor(InfoTextdraw, 0xffffffff);
TextDrawSetOutline(InfoTextdraw, 1);
TextDrawSetProportional(InfoTextdraw, 1);
TextDrawSetShadow(InfoTextdraw, 1);

return(InfoTextdraw);
}

stock ShowInfoText(playerid, Text[], Time, bool: WithSound)
{
if(PlayerInfoText[playerid] == INVALID_TEXT_DRAWS)
{
PlayerInfoText[playerid] = CreateInfoText(Text);

TextDrawShowForPlayer(playerid, PlayerInfoText[playerid]);

SetTimerEx("HideInfoText", Time, false, "i", playerid);
}
else
{
HideInfoText(playerid);
PlayerInfoText[playerid] = CreateInfoText(Text);

TextDrawShowForPlayer(playerid, PlayerInfoText[playerid]);

SetTimerEx("HideInfoText", Time, false, "i", playerid);
}
if(WithSound) { PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0); }
return 1;
}

public HideInfoText(playerid)
{
if(PlayerInfoText[playerid] != INVALID_TEXT_DRAWS)
{
TextDrawHideForPlayer(playerid, PlayerInfoText[playerid]);
TextDrawDestroy(PlayerInfoText[playerid]);
PlayerInfoText[playerid] = INVALID_TEXT_DRAWS;
}
return 1;
}
Reply
#4

Please somebody help me. I can't fix it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)