TextDraws
#8

Textdraws are overlapping because you never destroy them..

What I mean is that you should use TextDrawDestroy(); before you do TextDrawCreate(); again.

Example:

pawn Код:
if(team[killerid]==1 && team[playerid]!=1)
            {
                MaxScore1++;
                new out[128];
                TextDrawHideForAll(Textdraw6);
                format(out,128,"~r~%i",MaxScore1);
                TextDrawDestroy(Textdraw6); //<- this!
                Textdraw6 = TextDrawCreate(580.000000, 309.000000, out);
                TextDrawLetterSize(Textdraw6, 0.509998, 1.299999);
                TextDrawShowForAll(Textdraw6);
               
            }
OR:

Use TextDrawCreate in OnFilterScriptInit() or OnGameModeInit() then use TextDrawSetString();
Reply


Messages In This Thread
TextDraws - by spd_sahil - 15.09.2011, 06:58
Re: TextDraws - by Kingunit - 15.09.2011, 07:05
Re: TextDraws - by spd_sahil - 15.09.2011, 07:22
Re: TextDraws - by spd_sahil - 15.09.2011, 13:18
Re: TextDraws - by Vince - 15.09.2011, 13:44
Re: TextDraws - by spd_sahil - 15.09.2011, 15:48
Re: TextDraws - by spd_sahil - 16.09.2011, 09:20
Re: TextDraws - by iPLEOMAX - 16.09.2011, 09:42
Re: TextDraws - by spd_sahil - 16.09.2011, 11:23

Forum Jump:


Users browsing this thread: 1 Guest(s)