TextDraw Colors
#1

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); 
Reply
#2

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

so what do I do?i put TextDrawSetString in logoflash?
Reply
#4

maybe yes make

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



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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)