27.02.2015, 13:41
I'm sure there's an easier way, but the simple way I can think of is:
I think there might be an easy way with y_iterate, but I haven't really used that extensively unfortunately.
pawn Код:
new smallvar = 0;
for(new i = 0; i < 10; i++)
{
if(BLABLA[playerid][i] < BLABLA[playerid][smallvar]) smallvar = i;
}
printf("%d is the smallest value.", BLABLA[playerid][smallvar]);