passing all undefined amout of parameters to another function?
#2

Hey, if you just want to track timer usage than it'd be easy to use a define.

pawn Код:
#define SetTimerEx2(%1,%2,%3,%4,%5)\
  (printf("Timer for %s started", %1) & SetTimerEx(%1,%2,%3,%4,%5))
"return" of SetTimerEx2 will be 0 if any return 0.. you can of course change that. The %5 contains everything in the "...", which if you don't want to do anything for the specific items should be fine.

It's not the ideal way and it's ugly, but it can work for you.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)