27.09.2011, 02:44
Bom, criei uns textdraws no zamaroth... ai eu fiz um de data e um de hora, o de hora eu nao sei como eu ponho para atualizar os segundos e as horas.
Ajuda ae.
This forum requires that you wait 120 seconds between posts. Please try again in 10 seconds.
pawn Код:
new texto1[100], year, month, day, hour, minute, second, texto2[100];
getdate(year, month, day);
gettime(hour, minute, second);
format(texto1, sizeof texto1, "Dia: %d/%d/%d", day, month, year);
format(texto2, sizeof texto2, "Hora: %d:%d:%d", hour, minute, second);
Textdraw0 = TextDrawCreate(496.000000, 98.000000, "Torcidas");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.529999, 1.800000);
TextDrawColor(Textdraw0, -16776961);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
Textdraw1 = TextDrawCreate(510.000000, 114.000000, "Organizadas");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.500000, 1.500000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
Textdraw2 = TextDrawCreate(499.000000, 133.000000, texto1);
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.529999, 1.400000);
TextDrawColor(Textdraw2, -16776961);
TextDrawSetOutline(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);
Textdraw3 = TextDrawCreate(498.000000, 148.000000, texto2);
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.500000, 1.500000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 1);
TextDrawSetProportional(Textdraw3, 1);
This forum requires that you wait 120 seconds between posts. Please try again in 10 seconds.