Textdraws
#10

Yea i got you, just hide the previous Textdraw for example:

pawn Код:
CMD:test(playerid)
{
     TextDrawHideForPlayer(playerid, Textdrawname);
     TextDrawShowForPlayer(playerid, OtherTextDraw);
     return 1;
     
}

OR
If you want to make a simple system to close all of it at once without rewritting it all again just:

pawn Код:
forawrd RemoveAllTextdraws(playerid);
stock RemoveAllTextdraws(playerid)
{
     TextDrawHideForPlayer(playerid, Textdrawname);
     TextDrawHideForPlayer(playerid, Textdrawname);
     TextDrawHideForPlayer(playerid, Textdrawname);
     TextDrawHideForPlayer(playerid, Textdrawname);
     return 1;
}

CMD:test(playerid)
{
     RemoveAllTextdraws(playerid);
     TextDrawShowForPlayer(playerid, Textdrawname); // The new one.
     return 1;
}
Reply


Messages In This Thread
Textdraws - by Ananisiki - 12.02.2014, 23:51
Re: Textdraws - by Spydah - 12.02.2014, 23:58
Re: Textdraws - by Ananisiki - 13.02.2014, 00:07
Re: Textdraws - by Spydah - 13.02.2014, 00:10
Re: Textdraws - by Ananisiki - 13.02.2014, 00:33
Re: Textdraws - by Spydah - 13.02.2014, 01:04
Re: Textdraws - by [KHK]Khalid - 13.02.2014, 01:12
Re: Textdraws - by Ananisiki - 13.02.2014, 01:25
Re: Textdraws - by Ananisiki - 13.02.2014, 01:28
Re: Textdraws - by $Marco$ - 13.02.2014, 06:47

Forum Jump:


Users browsing this thread: 3 Guest(s)