Total Payout help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Total Payout help (
/showthread.php?tid=385931)
[SOLVED]Total Payout help -
tiernantheman - 18.10.2012
SOLVED, thanks Roel.
Re: Total Payout help -
Roel - 18.10.2012
pawn Code:
new totalpayout = rand + rand1 + rand2 + rand3 + rand4 + rand5 ;
You mean this?
Re: Total Payout help -
tiernantheman - 18.10.2012
Quote:
Originally Posted by Roel
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.
Re: Total Payout help -
Roel - 18.10.2012
Change this line
pawn Code:
new string[256], rand = 1 + random(250);
to
pawn Code:
new string[256], rand = 100 + random(150);
Re: Total Payout help -
tiernantheman - 18.10.2012
Quote:
Originally Posted by Roel
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.