16.08.2010, 07:31
pawn Code:
new variable[4];
stock WhichIsSmallest(variable1,variable2,variable3,variable4)
{
if(variable1 < variable2 && variable1 < variable3 && variable1 < variable4) return 1;
else if(variable2 < variable1 && variable2 < variable3 && variable2 < variable4) return 2;
else if(variable3 < variable1 && variable3 < variable2 && variable3 < variable4) return 3;
else return 4;
}