getarg with OnTimerEx bug?
#1

tried the following code

pawn Код:
SetTimerEx("PickupDestroy", 1000, 0, "ddddd", 1314, 1, 0, 4295926, 0); // numbers are random

// ...
public PickupDestroy(...)
{
    new printout[128], arg;
    format(printout, 128, " ^ PickupDestroy() args:");
    for(new i=0, j=numargs(); i<j; i++)
    {
        arg=getarg(i);
        format(printout, 128, "%s %d", printout, arg);
        //DestroyPickup(arg);
    }
    SendClientMessageToAll(0xFFFFFFFF, printout);
    print(printout);
    return;
}
and this returns me
Код:
[18:49:09] ^ PickupDestroy() args: 138674176 0 0 0 0
Help, maybe my mistake?
Reply
#2

Did you forward PickupDestroy?
Reply
#3

Of course.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)