[Ajuda] Com Cores - 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] Com Cores (
/showthread.php?tid=335291)
[Ajuda] Com Cores -
MatheusgabrielDS - 17.04.2012
Pessoal sу queria ajuda em 2 coisas:
pawn Код:
GameTextForPlayer(playerid, "Abastecido", 3000, 4);
Como Inserir uma cor nesse texto acima.
E como inserir uma cor, em somente em uma parte do texto abaixo:
pawn Код:
format(string,sizeof(string),"Velocidade: %d Km/h",floatround(floatsqroot(((x*x)+(y*y))+(z*z))*250.666667));
TextDrawSetString(speed[i],string);
format(string,sizeof(string),"Motor: %d%",floatround(hp));
TextDrawSetString(health[i],string);
format(string,sizeof(string),"Gasolina: %dL",VehicleFuel[vehicleid]);
Quem puder ajudar ae Vlw
Re: [Ajuda] Com Cores -
WLSF - 17.04.2012
Код:
~r~ = red
~g~ = green
~b~ = blue
~w~ = white
~y~ = yellow
~p~ = purple
~l~ = black
Dк uma olhada nesse
link aqui para ver mais...
Re: [Ajuda] Com Cores -
Lуs - 17.04.2012
GameTextStyle.
Re: [Ajuda] Com Cores -
MatheusgabrielDS - 17.04.2012
Nгo existe nenhuma maneira de substituir isso: ~r~, nessa parte:
pawn Код:
format(string,sizeof(string),"Gasolina: ~l~%dL",VehicleFuel[vehicleid]);
Por uma cor personalizada?
Re: [Ajuda] Com Cores -
WLSF - 17.04.2012
Funcionou assim no TextDraw?
@re: Nгo que eu saiba, nгo mecho com TextDraw, mas sу conheзo assim mesmo...
Re: [Ajuda] Com Cores -
BreakDriFT - 17.04.2012
ja tentou
{cor} ?
Re: [Ajuda] Com Cores -
MatheusgabrielDS - 17.04.2012
Quote:
Originally Posted by BreakDriFT
ja tentou
{cor} ?
|
Sim nгo funcionou
Re: [Ajuda] Com Cores -
Felipe_Wesker - 17.04.2012
pawn Код:
GameTextForPlayer(playerid, "~l~Abastecido", 3000, 4);
Re: [Ajuda] Com Cores -
WLSF - 17.04.2012
Quote:
Originally Posted by BreakDriFT
ja tentou
{cor} ?
|
TextDraw nгo aceita isso, se nгo me engano...
Quote:
Originally Posted by Felipe_Wesker
pawn Код:
GameTextForPlayer(playerid, "~l~Abastecido", 3000, 4);
|
Uau, vocк conseguiu fazer a mesma coisa que eu havia explicado lб em cima. Parabйns !
Re: [Ajuda] Com Cores -
Felipe_Wesker - 17.04.2012
Pow nem sabia q tinham varios comentarios, n tinha atualizado a pag..
MatheusGabriel, como assim uma cor personalizada?