14.06.2010, 23:48
Hey, if you just want to track timer usage than it'd be easy to use a define.
"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.
pawn Код:
#define SetTimerEx2(%1,%2,%3,%4,%5)\
(printf("Timer for %s started", %1) & SetTimerEx(%1,%2,%3,%4,%5))
It's not the ideal way and it's ugly, but it can work for you.