[AJUDA] Relуgio nгo Mostra Data '-'
#7

aqui,veja se ajuda...
No Topo Do Gm
Quote:

forward relogiopedro(playerid);
new Text:relogiopedro1;
new Text:relogiopedro2;

Agora No public OnPlayerConnect
Quote:

TextDrawShowForPlayer(playerid, relogiopedro1);
TextDrawShowForPlayer(playerid, relogiopedro2);

Agуra No OnGameModeInit
Quote:

SetTimer("pedrorelogio",1000,1);

e tambem aqui, ele й o mesmo que utilizo...
espero poder ajuda-lo
Quote:

relogiopedro1 = TextDrawCreate(525.000000,5.000000,"--");
relogiopedro2 = TextDrawCreate(550.000000,23.000000,"--");
TextDrawAlignment(relogiopedro1,0);
TextDrawAlignment(relogiopedro2,0);
TextDrawBackgroundColor(relogiopedro1,0x000000FF);
TextDrawBackgroundColor(relogiopedro2,0x000000FF);
TextDrawFont(relogiopedro1,3);
TextDrawLetterSize(relogiopedro1,0.399999,2.000000 );
TextDrawFont(relogiopedro2,3);
TextDrawLetterSize(relogiopedro2,0.399999,2.000000 );
TextDrawColor(relogiopedro1,0x8080FFAA);
TextDrawColor(relogiopedro2,0x8080FFAA);
TextDrawSetProportional(relogiopedro1,1);
TextDrawSetProportional(relogiopedro2,1);
TextDrawSetShadow(relogiopedro1,1);
TextDrawSetShadow(relogiopedro2,1);

TextDrawSetOutline(relogiopedro1,1);
TextDrawSetOutline(relogiopedro2,1);
TextDrawShowForAll(relogiopedro1);
TextDrawShowForAll(relogiopedro2);

agуra crie esta public
Quote:

public relogiopedro(playerid)
{
new
string[256],
ano,
mes,
dia,
horas,
minutos,
segundos;
getdate(ano, mes, dia);
gettime(horas, minutos, segundos);
format(string, sizeof string, "%d/%s%d/2010", dia, ((mes < 10) ? ("0") : ("")), mes);
TextDrawSetString(relogiopedro1, string);
format(string, sizeof string, "%s%d:%s%d:%s%d", (horas < 10) ? ("0") : (""), horas, (minutos < 10) ? ("0") : (""), minutos, (segundos < 10) ? ("0") : (""), segundos);
TextDrawSetString(relogiopedro2, string);
}

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)