10.12.2016, 17:00
The idea is good. I'd probably use something like this:
instead of those switch statements though.
pawn Код:
// SetCombination:
comb[9 - slot] = (1 <= value <= 9) ? 48 + value : 48;
// GetCombination:
if (48 <= (slot = comb[9 - slot]) <= 57) return slot - 48;

