16.05.2009, 16:26
Soemthing like that (edit if needed..)
pawn Код:
new
File:logfile,
logstring[128]
;
#define logprint(%0); \
{\
format(logstring,sizeof logstring,%0);\
print(logstring);\
logfile=fopen("logfile.log",io_append);\
fwrite(logfile,logstring);\
fwrite(logfile,"\r\n");\
fclose(logfile);\
}
pawn Код:
logprint("%s = %d", "0rb", 1337);