15.11.2011, 12:52
pawn Код:
public Relogio(playerid)
{
new Mes,Dia,Hora,Minuto,Segundo;
getdate(Mes, Dia);
new Reloginho[10];
gettime(Hora,Minuto,Segundo);
if(Minuto == 01)
{
SendClientMessage(playerid, -1, "Hora Do Pagamento");
return 0;
}
if(Mes == 1) { Reloginho = "Janeiro"; }
else if(Mes == 2) {Reloginho = "Fevereiro";}
else if(Mes == 3) {Reloginho = "Marзo";}
else if(Mes == 4) {Reloginho = "Abril";}
else if(Mes == 5) {Reloginho = "Maio";}
else if(Mes == 6) {Reloginho = "Junho";}
else if(Mes == 7) {Reloginho = "Julho";}
else if(Mes == 8) {Reloginho = "Agosto";}
else if(Mes == 9) {Reloginho = "Setembro";}
else if(Mes == 10) {Reloginho = "Outubro";}
else if(Mes == 11) {Reloginho = "Novembro";}
else if(Mes == 12) {Reloginho = "Dezembro";}
format(String, sizeof(String), "%d de %s", Dia, Reloginho);
TextDrawSetString(Textdraw6, String);
TextDrawShowForPlayer(playerid, Textdraw6);
format(String, sizeof(String), "%d:%d:%d", Hora, Minuto, Segundo);
TextDrawSetString(Textdraw7, String);
TextDrawShowForPlayer(playerid, Textdraw7);
return 1;
}
pawn Код:
Textdraw6 = TextDrawCreate(431.000000, 2.000000, "09 De Novembro");
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 3);
TextDrawLetterSize(Textdraw6, 0.579999, 1.900000);
TextDrawColor(Textdraw6, -6160129);
TextDrawSetOutline(Textdraw6, 1);
TextDrawSetProportional(Textdraw6, 1);
Textdraw7 = TextDrawCreate(544.000000, 21.000000, "09:10:10");
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 3);
TextDrawLetterSize(Textdraw7, 0.529999, 2.100000);
TextDrawColor(Textdraw7, -6160129);
TextDrawSetOutline(Textdraw7, 1);
TextDrawSetProportional(Textdraw7, 1);
e tem vez que aparece ex: 11 de Lataria: 0%
estб dando conflito com
pawn Код:
format(String, sizeof(String), "Lataria: ~r~%0.0f%%", Lataria);
TextDrawSetString(Textdraw2, String);