21.07.2016, 01:25
Yes, because the function uses only one parameter.
Use this:
min. value: +7
max. value: +170
or this:
pawn Код:
native random(max);
pawn Код:
if(Level >= 0 && Level < 50) { Caught = random((20 - 7 + 1)) + 7; }
else if(Level >= 50 && Level < 100) { Caught = random((50 - 20 + 1)) + 20; }
else if(Level >= 100 && Level < 200) { Caught = random((100 - 50 + 1)) + 50; }
else if(Level >= 200 && Level < 400) { Caught = random((140 - 60 + 1)) + 60; }
else if(Level >= 400 && Level < 500) { Caught = random((170 - 60 + 1)) + 60; }
max. value: +170
or this:
pawn Код:
if(Level >= 0 && Level < 50) { Caught = random((20 - 7 + 1)) - 7; }
else if(Level >= 50 && Level < 100) { Caught = random((50 - 20 + 1)) - 20; }
else if(Level >= 100 && Level < 200) { Caught = random((100 - 50 + 1)) - 50; }
else if(Level >= 200 && Level < 400) { Caught = random((140 - 60 + 1)) - 60; }
else if(Level >= 400 && Level < 500) { Caught = random((170 - 60 + 1)) - 60; }