10.12.2013, 23:44
Hola, cree unos textdraws que te muestran el nivel, telefono, etc pero cuando los coloco en el server no salen como yo los pongo, ejemplo:
Y en el server sale asi
Sale ese numero porque en el textdraw puse que te ponga el dinero en el banco y eso es lo que tengo en mi cuenta bancaria)
pawn Код:
function CrearTextStats(playerid)
{
CajaStats1[playerid] = TextDrawCreate(553.000000, 150.000000, "_");
TextDrawAlignment(CajaStats1[playerid], 2);
TextDrawBackgroundColor(CajaStats1[playerid], 255);
TextDrawFont(CajaStats1[playerid], 1);
TextDrawLetterSize(CajaStats1[playerid], 0.500000, 1.000000);
TextDrawColor(CajaStats1[playerid], -1);
TextDrawSetOutline(CajaStats1[playerid], 0);
TextDrawSetProportional(CajaStats1[playerid], 0);
TextDrawSetShadow(CajaStats1[playerid], 1);
TextDrawUseBox(CajaStats1[playerid], 1);
TextDrawBoxColor(CajaStats1[playerid], 80);
TextDrawTextSize(CajaStats1[playerid], 15.000000, 108.000000);
CajaStats2[playerid] = TextDrawCreate(553.000000, 165.000000, "_");
TextDrawAlignment(CajaStats2[playerid], 2);
TextDrawBackgroundColor(CajaStats2[playerid], 255);
TextDrawFont(CajaStats2[playerid], 1);
TextDrawLetterSize(CajaStats2[playerid], 0.500000, 1.000000);
TextDrawColor(CajaStats2[playerid], -1);
TextDrawSetOutline(CajaStats2[playerid], 0);
TextDrawSetProportional(CajaStats2[playerid], 0);
TextDrawSetShadow(CajaStats2[playerid], 1);
TextDrawUseBox(CajaStats2[playerid], 1);
TextDrawBoxColor(CajaStats2[playerid], 80);
TextDrawTextSize(CajaStats2[playerid], 15.000000, 108.000000);
CajaStats3[playerid] = TextDrawCreate(553.000000, 180.000000, "_");
TextDrawAlignment(CajaStats3[playerid], 2);
TextDrawBackgroundColor(CajaStats3[playerid], 255);
TextDrawFont(CajaStats3[playerid], 1);
TextDrawLetterSize(CajaStats3[playerid], 0.500000, 1.000000);
TextDrawColor(CajaStats3[playerid], -1);
TextDrawSetOutline(CajaStats3[playerid], 0);
TextDrawSetProportional(CajaStats3[playerid], 0);
TextDrawSetShadow(CajaStats3[playerid], 1);
TextDrawUseBox(CajaStats3[playerid], 1);
TextDrawBoxColor(CajaStats3[playerid], 80);
TextDrawTextSize(CajaStats3[playerid], 15.000000, 108.000000);
TituloStats[playerid] = TextDrawCreate(498.000000, 130.000000, "Personaje");
TextDrawBackgroundColor(TituloStats[playerid], 255);
TextDrawFont(TituloStats[playerid], 2);
TextDrawLetterSize(TituloStats[playerid], 0.449999, 1.200000);
TextDrawColor(TituloStats[playerid], -1);
TextDrawSetOutline(TituloStats[playerid], 1);
TextDrawSetProportional(TituloStats[playerid], 1);
PreguntaNivelStats[playerid] = TextDrawCreate(498.000000, 147.000000, "~r~Nivel:");
TextDrawBackgroundColor(PreguntaNivelStats[playerid], 255);
TextDrawFont(PreguntaNivelStats[playerid], 2);
TextDrawLetterSize(PreguntaNivelStats[playerid], 0.259999, 1.200000);
TextDrawColor(PreguntaNivelStats[playerid], -1);
TextDrawSetOutline(PreguntaNivelStats[playerid], 1);
TextDrawSetProportional(PreguntaNivelStats[playerid], 1);
PreguntaBancoStats[playerid] = TextDrawCreate(498.000000, 162.000000, "~r~Banco:");
TextDrawBackgroundColor(PreguntaBancoStats[playerid], 255);
TextDrawFont(PreguntaBancoStats[playerid], 2);
TextDrawLetterSize(PreguntaBancoStats[playerid], 0.259999, 1.200000);
TextDrawColor(PreguntaBancoStats[playerid], -1);
TextDrawSetOutline(PreguntaBancoStats[playerid], 1);
TextDrawSetProportional(PreguntaBancoStats[playerid], 1);
PreguntaRepStats[playerid] = TextDrawCreate(498.000000, 177.000000, "~r~Rep:");
TextDrawBackgroundColor(PreguntaRepStats[playerid], 255);
TextDrawFont(PreguntaRepStats[playerid], 2);
TextDrawLetterSize(PreguntaRepStats[playerid], 0.259999, 1.200000);
TextDrawColor(PreguntaRepStats[playerid], -1);
TextDrawSetOutline(PreguntaRepStats[playerid], 1);
TextDrawSetProportional(PreguntaRepStats[playerid], 1);
RespuestaBancoStats[playerid] = TextDrawCreate(605.000000, 162.000000, "0000000");
TextDrawAlignment(RespuestaBancoStats[playerid], 3);
TextDrawBackgroundColor(RespuestaBancoStats[playerid], 255);
TextDrawFont(RespuestaBancoStats[playerid], 2);
TextDrawLetterSize(RespuestaBancoStats[playerid], 0.259999, 1.200000);
TextDrawColor(RespuestaBancoStats[playerid], 16711935);
TextDrawSetOutline(RespuestaBancoStats[playerid], 1);
TextDrawSetProportional(RespuestaBancoStats[playerid], 1);
RespuestaRepStats[playerid] = TextDrawCreate(606.000000, 177.000000, "0");
TextDrawAlignment(RespuestaRepStats[playerid], 3);
TextDrawBackgroundColor(RespuestaRepStats[playerid], 255);
TextDrawFont(RespuestaRepStats[playerid], 2);
TextDrawLetterSize(RespuestaRepStats[playerid], 0.259999, 1.200000);
TextDrawColor(RespuestaRepStats[playerid], -16776961);
TextDrawSetOutline(RespuestaRepStats[playerid], 1);
TextDrawSetProportional(RespuestaRepStats[playerid], 1);
RespuestaNivelStats[playerid] = TextDrawCreate(605.000000, 147.000000, "1");//602
TextDrawAlignment(RespuestaNivelStats[playerid], 3);
TextDrawBackgroundColor(RespuestaNivelStats[playerid], 255);
TextDrawFont(RespuestaNivelStats[playerid], 2);
TextDrawLetterSize(RespuestaNivelStats[playerid], 0.259999, 1.200000);
TextDrawColor(RespuestaNivelStats[playerid], -65281);
TextDrawSetOutline(RespuestaNivelStats[playerid], 1);
TextDrawSetProportional(RespuestaNivelStats[playerid], 1);
SignoBancoStats[playerid] = TextDrawCreate(550.000000, 162.000000, "~g~$");
TextDrawAlignment(SignoBancoStats[playerid], 3);
TextDrawBackgroundColor(SignoBancoStats[playerid], 255);
TextDrawFont(SignoBancoStats[playerid], 2);
TextDrawLetterSize(SignoBancoStats[playerid], 0.259999, 1.200000);
TextDrawColor(SignoBancoStats[playerid], 16711935);
TextDrawSetOutline(SignoBancoStats[playerid], 1);
TextDrawSetProportional(SignoBancoStats[playerid], 1);
}
stock ResetiarStats(playerid)
{
new string[20];
format(string,sizeof(string),"~w~ %d",Info[playerid][pLevel]);
TextDrawSetString(RespuestaNivelStats[playerid], string);
TextDrawShowForPlayer(playerid, RespuestaNivelStats[playerid]);
new string1[20];
format(string1,sizeof(string1),"~w~ %d",Info[playerid][pAccount]);
TextDrawSetString(RespuestaBancoStats[playerid], string1);
TextDrawShowForPlayer(playerid, RespuestaBancoStats[playerid]);
new string2[20];
format(string2,sizeof(string2),"~w~ %d",Info[playerid][pPnumber]);
TextDrawSetString(RespuestaRepStats[playerid], string2);
TextDrawShowForPlayer(playerid, RespuestaRepStats[playerid]);
return 1;
}

