SA-MP Forums Archive
TextDraw Colors - 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 Colors (/showthread.php?tid=445289)



TextDraw Colors - Akcent_Voltaj - 20.06.2013

I made a thing so Union-Zone Changes 3 colors red,yellow,blue..but I cant make it work..

PHP код:
new LogoFlash=1
PHP код:
if(LogoFlash==1)//then it will flash much:P
                        
{
                            
LogoFlash++;
                            
TextDrawColor(Textdraw0,0xFF0000FF);
                        }
                        else if(
LogoFlash==2)
                        {
                            
TextDrawColor(Textdraw0,0xFFFF00FF);
                        }
                        else if(
LogoFlash==3)
                        {
                            
LogoFlash=1;
                            
TextDrawColor(Textdraw0,0x1229FAFF);
                        } 
PHP код:
Textdraw0 TextDrawCreate(506.000000,95.000000,"Union-Zone"); // logo
                    
TextDrawAlignment(Textdraw0,0);
                    
TextDrawBackgroundColor(Textdraw0,0x00000033);
                    
TextDrawFont(Textdraw01);
                    
TextDrawLetterSize(Textdraw00.4800001.799999);
                    
TextDrawColor(Textdraw0,0xFF9900AA); // delete this?
                    
TextDrawSetOutline(Textdraw0,false);
                    
TextDrawSetProportional(Textdraw0,true);
                    
TextDrawSetShadow(Textdraw0,1); 



Re: TextDraw Colors - Vince - 20.06.2013

Textdraws must be reshown to the player before they are updated on the client. The only exception to this rule is TextDrawSetString.


Re: TextDraw Colors - Akcent_Voltaj - 20.06.2013

so what do I do?i put TextDrawSetString in logoflash?


Re: TextDraw Colors - dEcooR - 20.06.2013

maybe yes make

format(string," color %s")
TextDrawSetString(td,string);


Re: TextDraw Colors - Vince - 20.06.2013



I almost literally tell you what needs to be done and yet the both of you still manage to not get it?
Quote:
Originally Posted by Vince
Посмотреть сообщение
Textdraws must be reshown
https://sampwiki.blast.hk/wiki/TextDrawShowForPlayer, https://sampwiki.blast.hk/wiki/TextDrawShowForAll