Server crash
#10

PHP код:
    new string1[80];
    
format(string1,80,"Logs/Command.txt");
    new
        
File:lFile = fopen(string1, io_append),
        
logData[200],
        
fyear, fmonth, fday,
        
fhour, fminute, fsecond;
    
getdate(fyear, fmonth, fday);
    
gettime(fhour, fminute, fsecond);
    
format(logData, 200,"[%02d/%02d/%04d %02d:%02d:%02d] %s: %s \r\n", fday, fmonth, fyear, fhour, fminute, fsecond, GetName(playerid), cmdtext);
    
fwrite(lFile, logData);
    
fclose(lFile);
    return 
1; 
just put that into your public onPlayerCommandText, ok?
Reply


Messages In This Thread
Server crash - by AlmirDelic - 27.11.2015, 16:03
Re: Server crash - by BiosMarcel - 27.11.2015, 16:21
Re: Server crash - by AlmirDelic - 27.11.2015, 16:23
Re: Server crash - by BiosMarcel - 27.11.2015, 16:28
Re: Server crash - by AlmirDelic - 27.11.2015, 16:31
Re: Server crash - by AlmirDelic - 28.11.2015, 17:30
Re: Server crash - by BiosMarcel - 28.11.2015, 17:46
Re: Server crash - by AlmirDelic - 28.11.2015, 18:05
Re: Server crash - by BiosMarcel - 28.11.2015, 18:10
Re: Server crash - by BiosMarcel - 28.11.2015, 18:22

Forum Jump:


Users browsing this thread: 1 Guest(s)