Functions with an unknown amount of arguments
#2

And whats your problem / question? If your problem is, that your code doenst work, then try this (worked fine):

pawn Код:
stock AddNumber(...)
{
    new result;
    for(new i=0; i<numargs(); i++) result += getarg(i);
    return result;
}
Reply


Messages In This Thread
Functions with an unknown amount of arguments - by sammp - 29.07.2014, 22:32
Re: Functions with an unknown amount of arguments - by Sharpadox - 29.07.2014, 23:19
Re: Functions with an unknown amount of arguments - by sammp - 29.07.2014, 23:58
Re: Functions with an unknown amount of arguments - by Sharpadox - 30.07.2014, 01:17
Re: Functions with an unknown amount of arguments - by sammp - 30.07.2014, 10:37
Re: Functions with an unknown amount of arguments - by Sharpadox - 30.07.2014, 12:49

Forum Jump:


Users browsing this thread: 1 Guest(s)