[Duda] їPorque mi textdraw se ve diferente? -
Andres963 - 01.08.2013
Hola,
Hice un textdraw de color rojo, pero a unas personas les sale negro y a otras rojo, їEsto a que se debe? їComo puedo arreglarlo?
Gracias de antemano.
Respuesta: [Duda] їPorque mi textdraw se ve diferente? -
JustBored - 01.08.2013
Mostra el cуdigo del textdraw.
JustBored -
Andres963 - 01.08.2013
ya Voy deja lo busco
Quote:
Originally Posted by JustBored
Mostra el cуdigo del textdraw.
|
new Text:HTXT[MAX_PLAYERS];
HTXT[i] = TextDrawCreate(557.0, 0.0, "_");
TextDrawColor(HTXT[i],ROJO); //Color 2
TextDrawBackgroundColor(HTXT[i],255);
TextDrawFont(HTXT[i],2);
TextDrawLetterSize(HTXT[i],0.260000,1.500000);
TextDrawTextSize(HTXT[i],0.000000,0.000000);
TextDrawSetOutline(HTXT[i],1);
TextDrawAlignment(HTXT[i],3);
TextDrawSetProportional(HTXT[i],1);
TextDrawSetShadow(HTXT[i],0);
TextDrawShowForPlayer(playerid, HTXT[playerid]);
public hambreupdate()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new string [256];
format(string, sizeof(string), "Hambre: %d %",JugadorInfo[i][jHambres]);
TextDrawSetString(HTXT[i], string);
}
}
return 1;
}
Respuesta: [Duda] їPorque mi textdraw se ve diferente? -
J031 - 01.08.2013
Quote:
Originally Posted by Andres963
new Text:HTXT[MAX_PLAYERS];
HTXT[i] = TextDrawCreate(557.0, 0.0, "_");
TextDrawColor(HTXT[i],ROJO); //Color 2
TextDrawBackgroundColor(HTXT[i],255);
TextDrawFont(HTXT[i],2);
TextDrawLetterSize(HTXT[i],0.260000,1.500000);
TextDrawTextSize(HTXT[i],0.000000,0.000000);
TextDrawSetOutline(HTXT[i],1);
TextDrawAlignment(HTXT[i],3);
TextDrawSetProportional(HTXT[i],1);
TextDrawSetShadow(HTXT[i],0);
TextDrawShowForPlayer(playerid, HTXT[playerid]);
public hambreupdate()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new string [256];
format(string, sizeof(string), "Hambre: %d %",JugadorInfo[i][jHambres]);
TextDrawSetString(HTXT[i], string);
}
}
return 1;
}
|
їDonde pones el cуdigo? En HTXT[i] = TextDrawCreate(557.0, 0.0, "_"); їDonde esta el valor de [i]?
Respuesta: [Duda] їPorque mi textdraw se ve diferente? -
Andres963 - 01.08.2013
Quote:
Originally Posted by J031
їDonde pones el cуdigo? En HTXT[i] = TextDrawCreate(557.0, 0.0, "_"); їDonde esta el valor de [i]?
|
el HTXT[i] = TextDrawCreate(557.0, 0.0, "_"); lo pongo en OnGameModeInit. El valos de i esta asi:
public OnGameModeInit()
{
for(new i; i<MAX_PLAYERS; i++)
{
HTXT[i] = TextDrawCreate(557.0, 0.0, "_");
TextDrawColor(HTXT[i],ROJO); //Color 2
TextDrawBackgroundColor(HTXT[i],255);
TextDrawFont(HTXT[i],2);
TextDrawLetterSize(HTXT[i],0.260000,1.500000);
TextDrawTextSize(HTXT[i],0.000000,0.000000);
TextDrawSetOutline(HTXT[i],1);
TextDrawAlignment(HTXT[i],3);
TextDrawSetProportional(HTXT[i],1);
TextDrawSetShadow(HTXT[i],0);
Y ahi sigue el OnGameMode Init
Respuesta: [Duda] їPorque mi textdraw se ve diferente? -
OTACON - 01.08.2013
que tipo de color usas en TextDrawColor?
recuerda ke se utiliza colores hexadecimales o utilizar algun otro codo para convertirlo..
OTACON -
Andres963 - 01.08.2013
Quote:
Originally Posted by OTACON
que tipo de color usas en TextDrawColor?
recuerda ke se utiliza colores hexadecimales o utilizar algun otro codo para convertirlo..
|
#define ROJO 0xFF6347AA
Quote:
Originally Posted by OTACON
que tipo de color usas en TextDrawColor?
recuerda ke se utiliza colores hexadecimales o utilizar algun otro codo para convertirlo..
|
A algunos si les sale el txtdraw como es, pero a otros (entre ellos a mi) nos sale negro.
Respuesta: [Duda] їPorque mi textdraw se ve diferente? -
Marricio - 02.08.2013
Quizбs tengas algun mod de textdraw (que haga tener una fuente diferente).