26.09.2009, 19:48
Код:
public OnPlayerDisconnect(playerid, reason) { #if Disconnection-Log new hour; new minute; new second; new day; new month; new year; new cmd[264]; new File:Disconnections; Disconnections = fopen("logs/disconnections.txt",io_append); { format(cmd,sizeof(cmd),"[%02d/%02d/%02d %02d:%02d:%02d] Player: %s || ID: %d || IP: %s disconnected. \r\n",day, month, year, hour, minute, second,PlayerName(playerid),playerid,PlayerIP(playerid)); fwrite(Disconnections,cmd); fclose(Disconnections); } #endif }
[00/00/00 00:00:00] Player: All******* || ID: 16 || IP: 255.255.255.255 disconnected.
WTF? Whats wrong?