18.01.2014, 23:51
Am I doing this right? xD
pawn Код:
stock MultiplyNumber(...)
{
new result = 0;
for(new i = 0; i < numargs(); ++i)
{
result *= getarg(i);
}
return result;
}
stock DivideNumber(...)
{
new result = 0;
for(new i = 0; i < numargs(); ++i)
{
result /= getarg(i);
}
return result;
}
stock SubtractNumber(...)
{
new result = 0;
for(new i = 0; i < numargs(); ++i)
{
result -= getarg(i);
}
return result;
}