SA-MP Forums Archive
Textdraws BUG - 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: Textdraws BUG (/showthread.php?tid=474544)



Textdraws BUG - Matas_Figas - 08.11.2013

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 -


Re: Textdraws BUG - Pottus - 08.11.2013

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.


Re: Textdraws BUG - Matas_Figas - 08.11.2013

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


Re: Textdraws BUG - Matas_Figas - 09.11.2013

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