stock printc(const format[], {Float,_}:...)
#2

It's not that simple, and the easiest way is to use a macro.

Your code converted to a macro:
pawn Код:
#define printc(%1); \
{\
  new Hour, Minute, Second;\
  gettime(Hour, Minute, Second);\
  new cf[100];\
  format(cf, 100, %1);\
  if( fexist(CmdFile) )\
  {\
    new File:cmdf=fopen(CmdFile, io_append);\
    fwrite(cmdf, cf);\
    fclose(cmdf);\
  }\
}
Reply


Messages In This Thread
stock printc(const format[], {Float,_}:...) - by cmg4life - 14.12.2009, 21:25
Re: stock printc(const format[], {Float,_}:...) - by yom - 14.12.2009, 21:32
Re: stock printc(const format[], {Float,_}:...) - by cmg4life - 14.12.2009, 21:44

Forum Jump:


Users browsing this thread: 1 Guest(s)