Total Payout help
#1

SOLVED, thanks Roel.
Reply
#2

pawn Code:
new totalpayout = rand + rand1 + rand2 + rand3  + rand4 + rand5 ;
You mean this?
Reply
#3

Quote:
Originally Posted by Roel
View Post
pawn Code:
new totalpayout = rand + rand1 + rand2 + rand3  + rand4 + rand5 ;
You mean this?
Ahh there we are thanks very much buddy, although 1 question.

You see the part unemployment benefits, I want that to always be over 100 Dollars every payday. At one payday it's $18 and at another its $200 and at another its usually $120 or something around that, basically it puts random numbers and you get the cash, is there anyway I can keep that over $100? The code is above for you if you can answer, thanks.
Reply
#4

Change this line
pawn Code:
new string[256], rand = 1 + random(250);
to
pawn Code:
new string[256], rand = 100 + random(150);
Reply
#5

Quote:
Originally Posted by Roel
View Post
Change this line
pawn Code:
new string[256], rand = 1 + random(250);
to
pawn Code:
new string[256], rand = 100 + random(150);
Thanks very much bud, I was a little confused with that Random part etc, lol. Thanks bud.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)