SA-MP Forums Archive
Text draw color problem - 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: Text draw color problem (/showthread.php?tid=414847)



[SOLVED] Text draw color problem - Noles2197 - 10.02.2013

I made this text draw, but the text is appearing black and should be pink. How do I fix this?

pawn Код:
new Text:Info;

public OnGameModeInit()
{
    Info = TextDrawCreate(0,0,"This is the best server on all of SA-MP");
    TextDrawAlignment(Info,1);
    TextDrawFont(Info,2);
    TextDrawColor(Info,0xFF7FB6AA);
    TextDrawBoxColor(Info, 0x0094FFAA);
    TextDrawUseBox(Info,1);
}

public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid,Info);
}



Re: Text draw color problem - T0pAz - 10.02.2013

By changing the color?

pawn Код:
TextDrawColor(Info,0xFF0080FF);



Re: Text draw color problem - Noles2197 - 10.02.2013

Look at my code

pawn Код:
TextDrawColor(Info,0xFF7FB6AA);



Re: Text draw color problem - T0pAz - 10.02.2013

Quote:
Originally Posted by Noles2197
Посмотреть сообщение
Look at my code

pawn Код:
TextDrawColor(Info,0xFF7FB6AA);
I saw that. The color itself is wrong.


Re: Text draw color problem - Noles2197 - 10.02.2013

How is it wrong if it works with SendClientMessage?


Re: Text draw color problem - sscarface - 10.02.2013

http://www.colorpicker.com


Re: Text draw color problem - Noles2197 - 10.02.2013

Even what T0pAz posted doesn't work. My text still appears black!

pawn Код:
TextDrawColor(Info,0xFF0080FF);



Re: Text draw color problem - MP2 - 10.02.2013

This is caused when the textdraw is off-screen. Only the shadow is showing. Try moving it down and/or right.


Re: Text draw color problem - Noles2197 - 10.02.2013

I had it at 0,0

Quote:
Originally Posted by MP2
Посмотреть сообщение
This is caused when the textdraw is off-screen. Only the shadow is showing. Try moving it down and/or right.



Re: Text draw color problem - MP2 - 10.02.2013

Did you manage to sort it out?