Integer variable comparison
#2

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;

}
Reply


Messages In This Thread
[SOLVED]Integer variable comparison - by Jakku - 16.08.2010, 07:28
Re: Integer variable comparison - by wups - 16.08.2010, 07:31
Re: Integer variable comparison - by Jakku - 16.08.2010, 07:34

Forum Jump:


Users browsing this thread: 2 Guest(s)