HOW TO DO a special printf?
#6

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);
Reply


Messages In This Thread
HOW TO DO a special printf? - by jwload - 15.05.2009, 23:25
Re: HOW TO DO a special printf? - by Backwardsman97 - 15.05.2009, 23:31
Re: HOW TO DO a special printf? - by jwload - 15.05.2009, 23:37
Re: HOW TO DO a special printf? - by Backwardsman97 - 15.05.2009, 23:50
Re: HOW TO DO a special printf? - by jwload - 16.05.2009, 16:16
Re: HOW TO DO a special printf? - by yom - 16.05.2009, 16:26
Re: HOW TO DO a special printf? - by Qeux - 16.05.2009, 16:57
Re: HOW TO DO a special printf? - by jwload - 16.05.2009, 17:05

Forum Jump:


Users browsing this thread: 1 Guest(s)