[Ajuda] Cores do TextDrawColor - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Cores do TextDrawColor (
/showthread.php?tid=562700)
Cores do TextDrawColor -
RafaelOsio - 11.02.2015
Olб galera, meu problema й o seguinte: Eu estou fazendo um teste, e caso retorne 1, quero setar a cor laranja e caso retorne 0, quero setar a cor azul. Atй ai tudo bem, a parte do teste estб tudo ok. Coloquei uma mensagem para ver se estб certo, e estб. O meu problema й que as cores nгo setam corretamente. Estou usando o mйtodo hexadecimal, mas nгo acontece nada. O que poderia ser ? Aguardo respostas. Obrigado.
Re: Cores do TextDrawColor -
#Luca[S]. - 11.02.2015
pawn Код:
TextDrawBackgroundColor(TextDrawID, 0xFF0000FF);
й isso que vc ta falando? '-'
Re: Cores do TextDrawColor -
RafaelOsio - 11.02.2015
Tambйm tentei, mas nгo aplica a cor...
Re: Cores do TextDrawColor -
JonathanFeitosa - 11.02.2015
Mande o Cуdigo e como estб usando...
Re: Cores do TextDrawColor -
RafaelOsio - 11.02.2015
TextDraw:
Код:
Textdraw12 = TextDrawCreate(507.199645, 95.573303, ".");
TextDrawLetterSize(Textdraw12, 1.194795, 4.504528);
TextDrawAlignment(Textdraw12, 1);
TextDrawSetShadow(Textdraw12, 0);
TextDrawSetOutline(Textdraw12, 1);
TextDrawBackgroundColor(Textdraw12, 51);
TextDrawFont(Textdraw12, 1);
TextDrawSetProportional(Textdraw12, 1);
Teste:
Код:
if(cache_num_rows() > 0)
{
TextDrawSetString(Textdraw12, "teste bem maneirinho");
TextDrawBackgroundColor(Textdraw12, 0xFF0000FF);
SendClientMessage(playerid, 0xFF0000FF, "login aqui oh");
}
else
{
TextDrawSetString(Textdraw12, "tйstandу");
TextDrawBackgroundColor(Textdraw12, 0x00FF00FF);
SendClientMessage(playerid, 0x00FF00FF, "registro das parada louca");
}