15.06.2010, 01:01
Some more language hack theories, trying to make it so it can be used like a normal function: (i.e. new var = SetTimerEx2(..); )
pawn Код:
// multiply other function results by 0 and then add SetTimerEx.
#define SetTimerEx2(%1,%2,%3,%4,%5)\
((printf("Timer for %s started", %1) + other_func() * 0) + SetTimerEx(%1,%2,%3,%4,%5))
pawn Код:
// re-route the timerid and name to a function to do more code easily
#define SetTimerEx2(%1,%2,%3,%4,%5)\
(__timer_ex(%1,SetTimerEx(%1,%2,%3,%4,%5)))
stock __timer_ex(name[], timerid)
{
print("Timer %s has started with an ID of %d", name, timerid);
return timerid;
}