SA-MP Forums Archive
[DUDA]Como hacer textdraw del mismo color - 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: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [DUDA]Como hacer textdraw del mismo color (/showthread.php?tid=546252)



[DUDA]Como hacer textdraw del mismo color - ElCeZaR - 14.11.2014

Hola amigos de forum sa-mp

Pues mi problema es el siguiente:

En mi ladmin, cree un sistema de estadisticas, las cuales, son creadas por solo un textdraw, y el cual trae el color que quiero que lleven todos los textdraw que son creados por el string.

aqui les dejo el codigo del textdraw mas el string

Textdraw...

Код:
esta[playerid] = TextDrawCreate(1.000000, 433.000000, " ");
	TextDrawBackgroundColor(esta[playerid], 255);
	TextDrawFont(esta[playerid], 3);
	TextDrawLetterSize(esta[playerid], 0.220000, 1.500000);
	TextDrawColor(esta[playerid], -5963521);
	TextDrawSetOutline(esta[playerid], 1);
	TextDrawSetProportional(esta[playerid], 1);
	TextDrawTextSize(esta[playerid], 643.000000, 0.000000);
TextDrawSetString...
Код:
format(stgil,sizeof(stgil),"Asesinatos: ~w~%d~r~~r~~y~    Muertes: ~w~%d~y~~h~    KDR: ~w~%0.2f~p~~h~~r~    Headshots: ~w~%i    Rango: ~w~%s~g~~h~~r~    Clan: ~w~%s~r~    Cuenta: ~w~%s~r~    ID: ~w~%d",PlayerInfo[playerid][Kills],PlayerInfo[playerid][Deaths], Float:PlayerInfo[playerid][Kills]/Float:pDeaths, PlayerInfo[playerid][HeadShots], rango, PlayerInfo[playerid][NombreClan], AccType, playerid);
	TextDrawSetString(esta[playerid],stgil);
y yo quisiera que quedaran de Color naranja igual que el primero "Asesinatos:" y blancos el resultado

Aqui una foto de como son:


Gracias de antemano


Re: [DUDA]Como hacer textdraw del mismo color - iSanchez - 14.11.2014

creo que si quieres como el primero no se puede, debes crear un textdraw por separado y ponerle el mismo color que el primero


Respuesta: [DUDA]Como hacer textdraw del mismo color - !R1Ch@rD! - 15.11.2014

solo andale poniendo color con "~r~" para que este un poco mбs claro seria ~r~~h~ "~h~ para que este mбs claro el rojo en este caso!!