bug with random weitht output
#10

Quote:
Originally Posted by MayaEU
Посмотреть сообщение
I changed it to this
pawn Код:
if(Level >= 0 && Level < 50) { Caught = random(7, 20); }
                    else if(Level >= 50 && Level < 100) { Caught = random(20, 50); }
                    else if(Level >= 100 && Level < 200) { Caught = random(50, 100); }
                    else if(Level >= 200 && Level < 400) { Caught = random(60, 140); }
                    else if(Level >= 400 && Level < 500) { Caught = random(60, 170); }
You have to use Random not random like in that line

Quote:
Originally Posted by MayaEU
Посмотреть сообщение
pawn Код:
new luck = Random(1, 100);
Random should be somewhere in your script which basically does what VVWVV did

Random(min, max) return random(max - min + 1) + min;
Reply


Messages In This Thread
bug with random weitht output - by MayaEU - 20.07.2016, 21:29
Re: bug with random weitht output - by Codeah - 20.07.2016, 22:14
Re: bug with random weitht output - by MayaEU - 20.07.2016, 22:29
Re: bug with random weitht output - by Nero_3D - 20.07.2016, 23:16
Re: bug with random weitht output - by MayaEU - 20.07.2016, 23:44
Re: bug with random weitht output - by Nero_3D - 20.07.2016, 23:52
Re: bug with random weitht output - by MayaEU - 20.07.2016, 23:58
Re: bug with random weitht output - by MayaEU - 21.07.2016, 00:04
Re: bug with random weitht output - by VVWVV - 21.07.2016, 01:25
Re: bug with random weitht output - by Nero_3D - 21.07.2016, 19:27

Forum Jump:


Users browsing this thread: 1 Guest(s)