SA-MP Forums Archive
[Ajuda] TextDraw com sombra estranha - 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] TextDraw com sombra estranha (/showthread.php?tid=335331)



[Ajuda] TextDraw com sombra estranha - MatheusgabrielDS - 18.04.2012

Entгo pessoal, quando eu uso a funзгo CreateTextDraw fica uma sombra estranha atrбs da letra, como eu faзo pra remove-la?



pawn Код:
new Text:Datum;
new year,month,day;
getdate(year,month,day);
if (day <= 9){format(string2,25,"0%d/%d/%d",day,month,year);}
else if (month <= 9 && day >= 9) {format(string2,25,"%d/%d/%d",day,month,year);}
else {format(string2,25,"%d/%d/%d",year,month,day);}
TextDrawHideForAll(Datum);
Datum=TextDrawCreate(36.000000,427.000000,string);
TextDrawLetterSize(Datum,0.500000,1.000000);
TextDrawFont(Datum,2);
TextDrawBackgroundColor(Datum,0x000000AA);
TextDrawShowForAll(Datum);

return 1;
}
quem puder ajudar ae vlw


Re: [Ajuda] TextDraw com sombra estranha - Edu33 - 18.04.2012

pawn Код:
TextDrawBackgroundColor(Datum,0x000000AA);
Retire isso. ou modifica a cor, coloca um branco que fica massa ae
0xFAFAFAFF <<< cor branca


Re: [Ajuda] TextDraw com sombra estranha - MatheusgabrielDS - 18.04.2012

Quote:
Originally Posted by Edu33
Посмотреть сообщение
pawn Код:
TextDrawBackgroundColor(Datum,0x000000AA);
Retire isso. ou modifica a cor, coloca um branco que fica massa ae
0xFAFAFAFF <<< cor branca
Tem sу um probleminha, eu confundi os cуdigos aqui, o certo й esse:

pawn Код:
new Text:Datum;
new year,month,day;
getdate(year,month,day);
if (day <= 9){format(string2,25,"0%d.%d.%d",day,month,year);}
else if (month <= 9 && day >= 9) {format(string2,25,"%d/0%d/%d",day,month,year);}
else {format(string2,25,"%d.%d.%d",day,month,year);}
TextDrawHideForAll(Datum);
Datum=TextDrawCreate(29.000000, 429.000000,string2);
TextDrawBackgroundColor(Datum, 255);
TextDrawFont(Datum, 2);
TextDrawLetterSize(Datum, 0.500000, 1.000000);
TextDrawColor(Datum, 1431655935);
TextDrawSetOutline(Datum, 0);
TextDrawSetProportional(Datum, 1);
TextDrawSetShadow(Datum, 1);
TextDrawSetOutline(Datum,2);
TextDrawShowForAll(Datum);

return 1;
}



Re: [Ajuda] TextDraw com sombra estranha - Edu33 - 18.04.2012

Entгo retira isso:
Quote:

TextDrawBackgroundColor(Datum, 255);

ou faz o mesmo procedimento que eu citei acima.
Quote:

TextDrawBackgroundColor(Datum, 0xFAFAFAFF);