Variable Argument Functions[QUESTION]
#3

Remove the n and you should be fine

pawn Код:
stock addNumbers(...) {
    new
        sum = 0,
        num = numargs();
    while(--num != -1) {
        sum += getarg(num, 0);
    }
    return sum;
}
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)