SA-MP Forums Archive
[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(<= score <= 9PlayerTextDrawSetString(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
Посмотреть сообщение
PlayerTextDrawBackgroundColor

Utilize isso para alterar a cor.
blz so q elas sгo em varias
PHP код:
    if(<= score <= 9PlayerTextDrawSetString(playerid,TakelotP[playerid], "test1");
    else if(
10 <= score <= 24PlayerTextDrawSetString(playerid,TakelotP[playerid], "test2");
    else if(
25 <= score <= 49PlayerTextDrawSetString(playerid,TakelotP[playerid], "test3");
    else if(
50 <= score <= 99PlayerTextDrawSetString(playerid,TakelotP[playerid], "test4");
    else if(
100 <= score <= 199PlayerTextDrawSetString(playerid,TakelotP[playerid], "test4");
    else if(
200 <= score <= 299PlayerTextDrawSetString(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(<= score <= 9PlayerTextDrawSetString(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(<= score <= 9PlayerTextDrawSetString(playerid,TakelotP[playerid], "test1");
    else if(
10 <= score <= 24PlayerTextDrawSetString(playerid,TakelotP[playerid], "test2");
    else if(
25 <= score <= 49PlayerTextDrawSetString(playerid,TakelotP[playerid], "test3");
    else if(
50 <= score <= 99PlayerTextDrawSetString(playerid,TakelotP[playerid], "test4");
    else if(
100 <= score <= 199PlayerTextDrawSetString(playerid,TakelotP[playerid], "test4");
    else if(
200 <= score <= 299PlayerTextDrawSetString(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(<= score <= 9PlayerTextDrawSetString(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(<= score <= 9)

     
PlayerTextDrawSetString(playerid,TakelotP[playerid], "test1");
     
PlayerTextDrawBackgroundColor(playeridTakelotP[playerid], 0xFF0000FF); // Textdraw Vermelho
}
else if(
10 <= score <= 24
{
     
PlayerTextDrawSetString(playerid,TakelotP[playerid], "test2");
     
PlayerTextDrawBackgroundColor(playeridTakelotP[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