[Ajuda] Cor
#1

Como muda cor do test1
PHP код:
if(<= score <= 9PlayerTextDrawSetString(playerid,TakelotP[playerid], "test1"); 
Reply
#2

PlayerTextDrawBackgroundColor

Utilize isso para alterar a cor.
Reply
#3

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"); 
Reply
#4

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 .... 
Reply
#5

@remove

Fui editar o post e criei outro post --'
Reply
#6

ele so mudou a cor da borda
pra mudar a cor seria essa ?
PHP код:
    PlayerTextDrawColor(playerid,TakelotP[playerid],0x00ff00ff); 
@edit
Foi vlw
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)