[Ajuda] Log
#7

Quote:
Originally Posted by RodrigoMSR
Посмотреть сообщение
A pasta "Entrada" nгo existe em scriptfiles, й a ъnica explicaзгo pro crash, o fwrite abre e edita as duas extensхes de arquivo.
cara consegui

ficou assim, nem to usando o dof2 pra isso, criei manualmente o arquivo entrada:

PHP код:
        new time[6], data[128], infoplayer[256], nomeplayer[MAX_PLAYER_NAME], ipplayer[16], pingplayer;
    new 
File:efile fopen("Entrada/Entradas.txt"io_append);
        
gettime(time[0], time[1], time[2]);
        
getdate(time[3], time[4], time[5]);
        
GetPlayerName(playeridnomeplayersizeof(nomeplayer));
        
GetPlayerIp(playeridipplayersizeof(ipplayer));
        
pingplayer GetPlayerPing(playerid);
        
format(datasizeof(data), "[%02d/%02d/%d][%02d:%02d:%02d]:",time[5], time[4], time[3], time[0], time[1], time[2]);
        
format(infoplayersizeof(infoplayer), "%s Nick: %s, IP: %d, Ping: %d\n"datanomeplayeripplayerpingplayer);
    
fwrite(efileinfoplayer);
    
fclose(efile); 
e a log ta assim:

Quote:

[22/04/2017][15:14:32]: Nick: Scorpion_Kairos, IP: 49, Ping: 65535

sу me explica uma coisa, pq o ip ficou 49 e o ping 65535?
Reply


Messages In This Thread
Log - by Scorpion659 - 22.04.2017, 17:42
Re: Log - by RodrigoMSR - 22.04.2017, 17:51
Re: Log - by Scorpion659 - 22.04.2017, 17:52
Re: Log - by RodrigoMSR - 22.04.2017, 18:01
Re: Log - by Scorpion659 - 22.04.2017, 18:19
Re: Log - by RodrigoMSR - 22.04.2017, 18:22
Re: Log - by Scorpion659 - 22.04.2017, 18:25
Re: Log - by RodrigoMSR - 22.04.2017, 18:37
Re: Log - by Scorpion659 - 22.04.2017, 18:40
Re: Log - by RodrigoMSR - 22.04.2017, 18:44

Forum Jump:


Users browsing this thread: 1 Guest(s)