29.07.2014, 22:32
Okay, waaay back in January I made a function that has an unknown amount of args. I just found it, never really got a solution so I'm troubleshooting :3
No compiler errors, Though I'm sure it didn't work.
pawn Код:
stock AddNumber(...)
{
new result = 0;
for(new i = 0; i <= numargs(); ++i)
{
result += getarg(i);
}
return result;
}