Haunted Dawg Posted March 12, 2009 Posted March 12, 2009 Re: [mccode] Crimes give random money Karlos, people aint very familiar with these thing's :/ Quote
POG1 Posted March 12, 2009 Posted March 12, 2009 Re: [mccode] Crimes give random money Why add an additional field? You can simply calculate it within the file. All it would take is an additional line. Think about something like this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
pavalache Posted August 5, 2009 Posted August 5, 2009 Re: [mccode] Crimes give random money installed the mod as instructed but as others mentioned there is a problem with the money. i get this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. notice there is no number between $ and money, maybe this helps really want this simple mod but failed to fix it. Quote
pavalache Posted August 5, 2009 Posted August 5, 2009 Re: [mccode] Crimes give random money problem fixed. good mod. Quote
jds137 Posted August 30, 2009 Posted August 30, 2009 Re: [mccode] Crimes give random money I wanted to bring this back to life, as the free crime mod. Which gived different cash etc... Quote
The Chaotic Banana Posted August 30, 2009 Posted August 30, 2009 Re: [mccode] Crimes give random money Still rather keep the basic mc codes crime page xD And add a random Jail for every 10 crimes u do xD Quote
Agon Posted October 23, 2009 Posted October 23, 2009 The Easy Way In docrime.php find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and replace with something like this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. adjust rand(1,10) to your liking This example here takes your number for crimeSUCCESSMUNY and divides it by a random number of 1-10 Quote
thedestroyer Posted October 27, 2009 Posted October 27, 2009 RE: The Easy Way In docrime.php find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and replace with something like this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. adjust rand(1,10) to your liking This example here takes your number for crimeSUCCESSMUNY and divides it by a random number of 1-10 I just tried your way and it makes the success money change each time but it says i make like $1 but really my money goes up by $20 wtf? Quote
Agon Posted November 4, 2009 Posted November 4, 2009 oops Ok, I see that it is generating TWO random numbers. One that is printed, one written to the database. I'll figure out how to combine them and post when I figure out. Quote
Zero-Affect Posted November 7, 2009 Posted November 7, 2009 Would it not be easier to use something like You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Does save on the two new added columns in the database... :whistling: Quote
thedestroyer Posted November 7, 2009 Posted November 7, 2009 can someine please post a working version of this thanks. Quote
Agon Posted November 9, 2009 Posted November 9, 2009 Would it not be easier to use something like You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Does save on the two new added columns in the database... :whistling: Thanks! Quote
CrazyT Posted November 10, 2009 Posted November 10, 2009 Simple just use this. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Simple aye? lol Quote
Agon Posted November 10, 2009 Posted November 10, 2009 Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Have fun! Quote
thedestroyer Posted November 12, 2009 Posted November 12, 2009 crimes mod works fine now thanks Agon! Quote
thedestroyer Posted November 24, 2009 Posted November 24, 2009 problem actually i still have a problem like with some crimes i set the minimum reward as 600 and the max as 900 but you sometimes get as low as 100! Quote
Redex Posted November 24, 2009 Posted November 24, 2009 Try placing this somewhere in the code : mt_rand(600,900); Quote
thedestroyer Posted November 24, 2009 Posted November 24, 2009 Try placing this somewhere in the code : mt_rand(600,900);but i need it to be a different amount for every crime. Quote
Redex Posted November 24, 2009 Posted November 24, 2009 That will be a different amount. Rand stands for : Random. The outcome for the user will be somethign between $600-900. Quote
thedestroyer Posted November 24, 2009 Posted November 24, 2009 That will be a different amount. Rand stands for : Random. The outcome for the user will be somethign between $600-900.sorry m8 but you obviously dont really understand what i need. I need Agon to help me. Quote
Redex Posted November 24, 2009 Posted November 24, 2009 i'm sorry i could not help, i wish you the best of luck with this problem, hope you get what you need. Quote
thedestroyer Posted November 24, 2009 Posted November 24, 2009 i'm sorry i could not help, i wish you the best of luck with this problem, hope you get what you need.thanks for trying though :) Quote
CJ - Twitch Posted February 16, 2010 Posted February 16, 2010 Sorry for bringing up an old thread but how would I get it to print the random moey of> Example. Result: Success Text! You got $ should be Result: Success Text! You got $RANDOM MONEY Just so the users know exactly how much they get. :) Thanks, CJ Quote
Magictallguy Posted February 16, 2010 Posted February 16, 2010 By typing {money} in the success text Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.