Quote:
Originally Posted by Dr_Pawno
Prefiro o Meu =D
pawn Код:
#define PastaLogs "Logs/"
stock SetLog(LogName[], Text[]) { new LogFile[64], File:Log, Write_Text[128], Hoje[6]; format(LogFile, sizeof(LogFile), "%s%s.txt", PastaLogs, LogName); if(fexist(LogFile)) Log = fopen(LogFile, io_append); else Log = fopen(LogFile, io_write); getdate(Hoje[2], Hoje[1], Hoje[0]); gettime(Hoje[3], Hoje[4], Hoje[5]); format(Write_Text, sizeof(Write_Text), "[%02d/%02d/%04d - %02d:%02d:%02d] %s\r\n", Hoje[0], Hoje[1], Hoje[2], Hoje[3], Hoje[4], Hoje[5], Text); fwrite(Log, Write_Text); fclose(Log); }
|
format(LogFile, sizeof(LogFile), "%s%s.txt", PastaLogs, LogName);
??
pawn Код:
format(LogFile, sizeof(LogFile), ""PastaLogs"%s.txt", LogName);
wtf;;;;;