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



TextDraw Color - ToPhrESH - 21.10.2011

I made a textdraw and the color won't ever work, it stays black.

pawn Код:
Away = TextDrawCreate(558.000000, 99.000000, "(AWAY)");
    TextDrawBackgroundColor(Away, 255);
    TextDrawFont(Away, 3);
    TextDrawLetterSize(Away, 0.580000, 1.800000);
    TextDrawColor(Away, 0x00CCCCCC);
    TextDrawSetOutline(Away, 0);
    TextDrawSetProportional(Away, 1);
    TextDrawSetShadow(Away, 1);
How can I make it go to the color I want?

** I have it to set as a string if that is a problem.


Re: TextDraw Color - AeroBlast - 21.10.2011

nvm...


Re: TextDraw Color - ToPhrESH - 21.10.2011

Can anyone help me? Is there anything I didn't do?


Re: TextDraw Color - Kakioshe22 - 21.10.2011

PHP код:
TextDrawColor(Away0x00CCCCCC); 
Change 0x00CCCCCC to any color you want


Re: TextDraw Color - ToPhrESH - 21.10.2011

Quote:
Originally Posted by Kakioshe22
Посмотреть сообщение
PHP код:
TextDrawColor(Away0x00CCCCCC); 
Change 0x00CCCCCC to any color you want
Lol Stop spamming, if you would have actually tested you would have seen 0x00CCCCCC doesn't = Black.

That is the color I want my TXTDRAW to be...


Re: TextDraw Color - wumpyc - 21.10.2011

Try this:
PHP код:
new Text:Away 
PHP код:
    Away TextDrawCreate(558.00000099.000000"(AWAY)");
    
TextDrawBackgroundColor(Away255);
    
TextDrawFont(Away3);
    
TextDrawLetterSize(Away0.5800001.800000);
    
TextDrawColor(Away0x00CCCCCC);
    
TextDrawSetOutline(Away0);
    
TextDrawSetProportional(Away1);
    
TextDrawSetShadow(Away1);
    
TextDrawShowForPlayer(Away,playerid); 



Re: TextDraw Color - ToPhrESH - 22.10.2011

I have every script to use to make a textdraw. I tested and it compiled, it's just that my textdraw is displaying black.

pawn Код:
Away = TextDrawCreate(558.000000, 99.000000, "(AWAY)");
    TextDrawBackgroundColor(Away, 255);
    TextDrawFont(Away, 3);
    TextDrawLetterSize(Away, 0.580000, 1.800000);
    TextDrawColor(Away, 0x00CCCCCC);
    TextDrawSetOutline(Away, 0);
    TextDrawSetProportional(Away, 1);
    TextDrawSetShadow(Away, 1);
    //TextDrawShowForPlayer(Away,playerid);  Don't put in OnGameModeInit?
I already have all of that under ongamemodeinit except I have the textdraw to show up when the player connects.

Still black.