Posts: 20
Threads: 7
Joined: Feb 2012
Reputation:
0
if(randfish == 4)
{
new fish[128];
new price = 1800 + random(500);
What means that random(500) ?
I want to change the job's payment.
Posts: 76
Threads: 1
Joined: Sep 2016
Reputation:
0
random(500) will return a random value between 0 and 499.
1, 2, 3, 4, 5, ..., 498, 499.
Posts: 20
Threads: 7
Joined: Feb 2012
Reputation:
0
Oh, and if I'll use random(5000) will return something between 0 and 4999?
Posts: 20
Threads: 7
Joined: Feb 2012
Reputation:
0
And I can do something like excluding that random like everywhere using random(0) and just editing that new price = 1800 to make it like new price = 5000 + random(0) ?