[Ajuda] Data й hora
#4

Jб testei e jб aproveitei e deixei ele da forma correta que deve ser !

PHP код:
new TimerRelogio[MAX_PLAYERS];
public 
OnGameModeInit()
{
    
Textdraw[3] = TextDrawCreate(559.375000416.333312"~w~~h~Data: 00/00/0000 - 00:00:00");
    
TextDrawLetterSize(Textdraw[3], 0.1250001.028332);
    
TextDrawAlignment(Textdraw[3], 1);
    
TextDrawColor(Textdraw[3], -1);
    
TextDrawSetShadow(Textdraw[3], 0);
    
TextDrawSetOutline(Textdraw[3], 0);
    
TextDrawBackgroundColor(Textdraw[3], 255);
    
TextDrawFont(Textdraw[3], 2);
    
TextDrawSetProportional(Textdraw[3], 1);
    
TextDrawSetShadow(Textdraw[3], 0);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
TimerRelogio[playerid] = SetTimerEx("Relogio"1000true"d"playerid);
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    
TextDrawHideForPlayer(playeridTextdraw[3]);
    
KillTimer(TimerRelogio[playerid]);
    return 
1;
}
forward Relogio(playerid);
public 
Relogio(playerid) {
    
TextDrawHideForPlayer(playeridTextdraw[3]);
    new 
string[75], HoraMinutoSegundoDiaMesAno;
    
gettime(HoraMinutoSegundo);
    
getdate(AnoMesDia);
    
format(stringsizeof(string), "~w~~h~Data: %02d/%02d/%d - %02d:%02d:%02d"DiaMesAnoHoraMinutoSegundo);
    
TextDrawSetString(Textdraw[3], string);
    
TextDrawShowForPlayer(playeridTextdraw[3]);

Reply


Messages In This Thread
Data й hora - by BrGabrielBr - 16.04.2018, 23:04
Re: Data й hora - by arakuta - 16.04.2018, 23:21
Re: Data й hora - by PilateGR - 16.04.2018, 23:21
Re: Data й hora - by [BOPE]Seu._.Madruga - 16.04.2018, 23:25
Re: Data й hora - by BrGabrielBr - 16.04.2018, 23:31
Re: Data й hora - by [BOPE]Seu._.Madruga - 16.04.2018, 23:35
Re: Data й hora - by BrGabrielBr - 16.04.2018, 23:40
Re: Data й hora - by BrGabrielBr - 16.04.2018, 23:43
Re: Data й hora - by [BOPE]Seu._.Madruga - 16.04.2018, 23:51
Re: Data й hora - by BrGabrielBr - 17.04.2018, 00:13

Forum Jump:


Users browsing this thread: 1 Guest(s)