Custom printf
#2

You mean something like this?

pawn Код:
new
    FALSE = 0;
pawn Код:
#define ConsoleMsg(%0,%1) \
do \
{ \
  new \
      string[128]; \
  if(strlen(%0) > 0) \
  { \
    format(string, sizeof(string), %0, %1); \
    print(string); \
  } \
} \
while(FALSE)
Reply


Messages In This Thread
Custom printf - by Tr1viUm - 03.12.2009, 16:24
Re: Custom printf - by Correlli - 03.12.2009, 16:28
Re: Custom printf - by Tr1viUm - 03.12.2009, 16:51
Re: Custom printf - by Finn - 03.12.2009, 17:01
Re: Custom printf - by Tr1viUm - 03.12.2009, 17:12
Re: Custom printf - by MenaceX^ - 03.12.2009, 17:24
Re: Custom printf - by Tr1viUm - 03.12.2009, 17:44
Re: Custom printf - by Correlli - 03.12.2009, 17:46

Forum Jump:


Users browsing this thread: 2 Guest(s)