11.08.2013, 18:58
Not that it matters now, I would have done it like that, maybe add at the end some checks for empty results
pawn Код:
new
i,
result[3]
;
while(i++ < 3) {
result[random(sizeof result)]++;
}
SmallGrip[playerid] += result[0];
MedGrip[playerid] += result[1];
LargeGrip[playerid] += result[2];
printf("You got %d SmallGrip, %d MedGrip and %d LargeGrip from the package.", result[0], result[1], result[2]);