Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetTimer("hora", 1000, true);
- //
- forward hora();
- public hora()
- {
- new str[128],
- str2[128],
- year,
- month,
- day,
- hour,
- minute,
- second;
- getdate(year, month, day);
- gettime(hour, minute, second);
- new mes[15];
- if(month == 1) { mes = "Janeiro"; }
- else if(month == 2) {mes = "Fevereiro";}
- else if(month == 3) {mes = "Março";}
- else if(month == 4) {mes = "Abril";}
- else if(month == 5) {mes = "Maio";}
- else if(month == 6) {mes = "Junho";}
- else if(month == 7) {mes = "Julho";}
- else if(month == 8) {mes = "Agosto";}
- else if(month == 9) {mes = "Setembro";}
- else if(month == 10) {mes = "Outubro";}
- else if(month == 11) {mes = "Novembro";}
- else if(month == 12) {mes= "Dezembro";}
- format(str, sizeof(str), "%d/%s/%d", day, mes,year);
- TextDrawSetString(Textdraw0, str);
- format(str2, sizeof(str2), "%d:%d:%d", hour, minute, second);
- TextDrawSetString(Textdraw1, str2);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment