[Ajuda] Cor do Relogio
#1

Olб Galera, Estou com uma Duvida, queria Colocar meu Relogio, Dentro de uma Cor e Fora de Outra. eu Sei Onde Esta o Relogio. Por Favor Ajuda ae!!!
Obg!!!
Reply
#2

Nгo mexo muito com TextDrawns, mais aq vai um exemplinho.

pawn Код:
exemplo = TextDrawCreate(532.000000,435.000000,"texto");
TextDrawFont(exemplo,1);
TextDrawColor(exemplo,0xAA3333AA);
TextDrawLetterSize(exemplo,0.599999,1.000000);
TextDrawSetOutline(exemplo,1);
TextDrawSetShadow(exemplo,1);
TextDrawSetProportional(exemplo,1);
TextDrawBackgroundColor(exemplo,0x000000ff);
As funзхes TextDrawColor(exemplo,0xAA3333AA); e TextDrawBackgroundColor(exemplo,0x000000ff); correspondem as cores da TextDrawn, o prуprio nome jб diz na 2Є funзгo, BackgroundColor, entгo, certamente alн estб a cor de fundo, basta alterar nas suas Texts, conforme a sua vontade.

Boa Sorte!
Reply
#3

TextDrawColor - https://sampwiki.blast.hk/wiki/TextDrawColor
TextDrawBackgroundColor - https://sampwiki.blast.hk/wiki/TextDrawBackgroundColor

Seletor de cores - http://www.ladylony.com/seletordecores.htm
Reply
#4

Ok Vo Tentar, mas eu mudo a cor assim ~b~ e tal. o codigo onde mudo e esse
pawn Код:
public reloginho(){
    SyncTime();
    new
        string[256],
        ano,
        mes,
        dia,
        horas,
        minutos,
        segundos;   //Relogio EBN
    getdate(ano, mes, dia);gettime(horas, minutos, segundos);
    format(string, sizeof string, "~y~~h~~h~~h~%d/%s%d/2012", dia, ((mes < 10) ? ("0") : ("")), mes);TextDrawSetString(Reloginho1, string);
    format(string, sizeof string, "~y~~h~~h~~h~%s%d:%s%d:%s%d", (horas < 10) ? ("0") : (""), horas, (minutos < 10) ? ("0") : (""), minutos, (segundos < 10) ? ("0") : (""), segundos);TextDrawSetString(Reloginho2, string);
    TextDrawShowForAll(Reloginho1);TextDrawShowForAll(Reloginho2);}
, mas tem uma parte onde mexe no text draw vo tentar aki, Obrigado Pelas Respostas

@Edit
Deu Certo Valeu
Reply
#5

pawn Код:
TextDrawBackgroundColor(Reloginho2, COR);
A cor vocк pode estar pegando no seletor de cores que postei ai em cima.
http://www.ladylony.com/seletordecores.htm
Nгo precisa ~r~, acho que esses codigos й apйnas pra GameTextForPlayer.
Reply
#6

Este tipo de cor й apenas para string quando utilizar TextdrawSetString, para TextDrawColor e TextDrawBackgroundColor й cores Macro.
Reply
#7

Quote:
Originally Posted by EbinhO_EBN
Посмотреть сообщение
Ok Vo Tentar, mas eu mudo a cor assim ~b~ e tal. o codigo onde mudo e esse, mas tem uma parte onde mexe no text draw vo tentar aki, Obrigado Pelas Respostas
Use [*pawn][*/pawn], sem os asteriscos.

pawn Код:
public reloginho()
{
    SyncTime();
    new string[128],
        ano,
        mes,
        dia,
        horas,
        minutos,
        segundos; //Relogio EBN
        getdate(ano, mes, dia);gettime(horas, minutos, segundos);
        format(string, sizeof string, "~y~~h~~h~~h~%d/%s%d/2012", dia, ((mes < 10) ? ("0") : ("")), mes);
        TextDrawSetString(Reloginho1, string);
        format(string, sizeof string, "~y~~h~~h~~h~%s%d:%s%d:%s%d", (horas < 10) ? ("0") : (""), horas, (minutos < 10) ? ("0") : (""), minutos, (segundos < 10) ? ("0") : (""), segundos);
        TextDrawSetString(Reloginho2, string);
        TextDrawShowForAll(Reloginho1);
        TextDrawShowForAll( Reloginho2);
    return 1;
}
Mais afinal, oq a de errado com seu cуdigo?
Reply
#8

Atб ele usa String, agora que fui perceber. -facepalms
Reply
#9

Resolvido
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)