[Ajuda] Reloginho
#1

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);
Quando eu vo la no gm nao aparece a textdraw.
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);
Reply


Messages In This Thread
[Ajuda] Reloginho - by Lipe_Stronda - 15.11.2011, 12:52
Re: [Reloginho] Ajuda - by Pharrel - 15.11.2011, 12:56
Re: [Ajuda] Reloginho - by Lipe_Stronda - 15.11.2011, 13:08
Re: [Ajuda] Reloginho - by Pharrel - 15.11.2011, 13:14
Re: [Ajuda] Reloginho - by Lipe_Stronda - 15.11.2011, 13:17
Re: [Ajuda] Reloginho - by Pharrel - 15.11.2011, 13:22
Re: [Ajuda] Reloginho - by Lipe_Stronda - 16.11.2011, 09:24

Forum Jump:


Users browsing this thread: 3 Guest(s)