SA-MP Forums Archive
Textdraw Help - 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: Textdraw Help (/showthread.php?tid=645460)



Textdraw Help - NealPeteros - 27.11.2017

Is there any way for 2 textdraws overlapping and put one of those textdraws in front of the other? I tried showing the textdraw that's supposed to be behind first and the one supposed to be infront last, but still won't work.


Re: Textdraw Help - FuNkYTheGreat - 27.11.2017

First show the textdraw that is the behind one and then show that which needs to be infront of it,
e.g
Код:
TextDrawShowForPlayer(playerid,BEHINDONE);
then
TextDrawShowForPlayer(playerid,INFRONT OF IT ONE);
Simple as that.


Re: Textdraw Help - NealPeteros - 27.11.2017

Quote:
Originally Posted by FuNkYTheGreat
Посмотреть сообщение
First show the textdraw that is the behind one and then show that which needs to be infront of it,
e.g
Код:
TextDrawShowForPlayer(playerid,BEHINDONE);
then
TextDrawShowForPlayer(playerid,INFRONT OF IT ONE);
Simple as that.
So, that kinda helped, but the problem is that there's like 10 textdraws in front of the background textdraw. And everytime a textdraw shows after another, it disappears and the new textdraw remains.

PS: Glad to be helped by the man who inspired me with his work, SA Tube, to make the current project i'm working on.

btw, if this is not making any sense, please inform. I'll simplify it if I can.


EDIT: It's something like this

PHP код:
PlayerTextDrawShow(playeridpTextDraw1[playerid]); //background textdraw
    
TextDrawShowForPlayer(playeridTextDraw9);//contents of background(9-25)
    
TextDrawShowForPlayer(playeridTextDraw10);
    
TextDrawShowForPlayer(playeridTextDraw11);
    
TextDrawShowForPlayer(playeridTextDraw12);
    
TextDrawShowForPlayer(playeridTextDraw13);
    
TextDrawShowForPlayer(playeridTextDraw14);
    
TextDrawShowForPlayer(playeridTextDraw15);
    
TextDrawShowForPlayer(playeridTextDraw16);
    
TextDrawShowForPlayer(playeridTextDraw17);
    
TextDrawShowForPlayer(playeridTextDraw18);
    
TextDrawShowForPlayer(playeridTextDraw19);
    
TextDrawShowForPlayer(playeridTextDraw20);
    
TextDrawShowForPlayer(playeridTextDraw21);
    
TextDrawShowForPlayer(playeridTextDraw22);
    
TextDrawShowForPlayer(playeridTextDraw23);
    
TextDrawShowForPlayer(playeridTextDraw24);
    
TextDrawShowForPlayer(playeridTextDraw25);//The only one showing up