SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 18/10/2012, 12:37 PM   #1
tiernantheman
Huge Clucker
 
Join Date: Dec 2011
Location: United States
Posts: 397
Reputation: 66
Default [SOLVED]Total Payout help

SOLVED, thanks Roel.
tiernantheman is offline   Reply With Quote
Old 18/10/2012, 12:41 PM   #2
Roel
Gangsta
 
Join Date: Mar 2012
Location: Netherlands, Limburg
Posts: 727
Reputation: 229
Default Re: Total Payout help

pawn Code:
new totalpayout = rand + rand1 + rand2 + rand3  + rand4 + rand5 ;

You mean this?
Roel is offline   Reply With Quote
Old 18/10/2012, 01:00 PM   #3
tiernantheman
Huge Clucker
 
Join Date: Dec 2011
Location: United States
Posts: 397
Reputation: 66
Default Re: Total Payout help

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.
tiernantheman is offline   Reply With Quote
Old 18/10/2012, 01:01 PM   #4
Roel
Gangsta
 
Join Date: Mar 2012
Location: Netherlands, Limburg
Posts: 727
Reputation: 229
Default Re: Total Payout help

Change this line
pawn Code:
new string[256], rand = 1 + random(250);
to
pawn Code:
new string[256], rand = 100 + random(150);
Roel is offline   Reply With Quote
Old 18/10/2012, 01:03 PM   #5
tiernantheman
Huge Clucker
 
Join Date: Dec 2011
Location: United States
Posts: 397
Reputation: 66
Default Re: Total Payout help

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.
tiernantheman is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I will payout for Delete Anticheat Yordan_Kronos Scripting Help 1 10/06/2012 03:27 PM
I will payout Yordan_Kronos Scripting Help 9 14/05/2012 06:12 AM
drag strip payout [LHT]Bally Scripting Help 2 13/09/2011 05:52 PM
New way o payout Panormitis Help Archive 1 27/04/2011 03:24 PM


All times are GMT. The time now is 01:34 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.