02.05.2016, 14:28
Quote:
Код:
if (a == 1 || a == 2 || a == 3 || a == 4 || a == 5) Код:
switch (a) { case 1, 2, 3, 4, 5: { // Do something } } |
pawn Код:
case 1 .. 5:
Some are minor but it's always good to know even if the difference is not even noticeable.
Anyway, one thing I mostly see in threads about scripting help is the declaration of variables inside loops.