Variable Argument Functions[QUESTION]
#2

pawn Код:
stock addNumbers(n, ...)
{
    new args = numargs();
    new sum = n;
    for(new i;i<args;i++)
    {
        sum += getarg(i,0);
    }
    return sum;
}
not sure.. should be it
Reply


Messages In This Thread
Variable Argument Functions[QUESTION] - by T0pAz - 27.12.2011, 12:58
Re: Variable Argument Functions[QUESTION] - by THE_KNOWN - 27.12.2011, 13:10
AW: Variable Argument Functions[QUESTION] - by Nero_3D - 27.12.2011, 13:12
Re: Variable Argument Functions[QUESTION] - by T0pAz - 27.12.2011, 13:14

Forum Jump:


Users browsing this thread: 1 Guest(s)