[Ajuda] Cor - 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] Cor (
/showthread.php?tid=623383)
Cor -
vinilol321 - 01.12.2016
Como muda cor do test1
PHP код:
if(0 <= score <= 9) PlayerTextDrawSetString(playerid,TakelotP[playerid], "test1");
Re: Cor -
Eddye - 01.12.2016
PlayerTextDrawBackgroundColor
Utilize isso para alterar a cor.
Re: Cor -
vinilol321 - 01.12.2016
Quote:
Originally Posted by Eddye
|
blz so q elas sгo em varias
PHP код:
if(0 <= score <= 9) PlayerTextDrawSetString(playerid,TakelotP[playerid], "test1");
else if(10 <= score <= 24) PlayerTextDrawSetString(playerid,TakelotP[playerid], "test2");
else if(25 <= score <= 49) PlayerTextDrawSetString(playerid,TakelotP[playerid], "test3");
else if(50 <= score <= 99) PlayerTextDrawSetString(playerid,TakelotP[playerid], "test4");
else if(100 <= score <= 199) PlayerTextDrawSetString(playerid,TakelotP[playerid], "test4");
else if(200 <= score <= 299) PlayerTextDrawSetString(playerid,TakelotP[playerid], "test5");
se eu muda 1 ela nгo vai cor pra todos ?
unico jeito de colocar cor e utilizando
[PHP]
PHP код:
if(0 <= score <= 9) PlayerTextDrawSetString(playerid,TakelotP[playerid], "~w~test1");
Re: Cor -
Eddye - 01.12.2016
Quote:
Originally Posted by vinilol321
blz so q elas sгo em varias
PHP код:
if(0 <= score <= 9) PlayerTextDrawSetString(playerid,TakelotP[playerid], "test1");
else if(10 <= score <= 24) PlayerTextDrawSetString(playerid,TakelotP[playerid], "test2");
else if(25 <= score <= 49) PlayerTextDrawSetString(playerid,TakelotP[playerid], "test3");
else if(50 <= score <= 99) PlayerTextDrawSetString(playerid,TakelotP[playerid], "test4");
else if(100 <= score <= 199) PlayerTextDrawSetString(playerid,TakelotP[playerid], "test4");
else if(200 <= score <= 299) PlayerTextDrawSetString(playerid,TakelotP[playerid], "test5");
se eu muda 1 ela nгo vai cor pra todos ?
unico jeito de colocar cor e utilizando
[PHP]
PHP код:
if(0 <= score <= 9) PlayerTextDrawSetString(playerid,TakelotP[playerid], "~w~test1");
|
Eu nгo entendi uma coisa, qual o intuito dessa TextDraw? pq dependendo da pra fazer algo mais compacto
E sim se mudar a cor de 1 muda pra todos, por ser a mesma textdraw, ah nгo ser que vocк faзa:
PHP код:
if(0 <= score <= 9)
{
PlayerTextDrawSetString(playerid,TakelotP[playerid], "test1");
PlayerTextDrawBackgroundColor(playerid, TakelotP[playerid], 0xFF0000FF); // Textdraw Vermelho
}
else if(10 <= score <= 24)
{
PlayerTextDrawSetString(playerid,TakelotP[playerid], "test2");
PlayerTextDrawBackgroundColor(playerid, TakelotP[playerid], 0x12A5FFFF); // Textdraw Azul
}
e assim vai ....
Re: Cor -
Eddye - 01.12.2016
@remove
Fui editar o post e criei outro post --'
Re: Cor -
vinilol321 - 02.12.2016
ele so mudou a cor da borda
pra mudar a cor seria essa ?
PHP код:
PlayerTextDrawColor(playerid,TakelotP[playerid],0x00ff00ff);
@edit
Foi

vlw