08.01.2011, 10:09
(
Последний раз редактировалось RyDeR`; 06.07.2011 в 09:52.
)
True, I forgot that. Editing my post now.
pawn Код:
stock GetBiggestArrayNumber(array[], len = sizeof(array))
{
new
biggest = cellmin
;
for(new i ; i != len; ++i)
{
if(array[i] > biggest)
{
biggest = array[i];
}
}
return biggest;
}
stock GetSmallestArrayNumber(array[], len = sizeof(array))
{
new
smallest = cellmax
;
for(new i ; i != len; ++i)
{
if(array[i] < smallest)
{
smallest = array[i];
}
}
return smallest;
}