Haunted Dawg Posted February 9, 2009 Share Posted February 9, 2009 Re: [mccode v2] Lucky Bags $rdmitm = ($r['level'] > 49) ? rand(1,22) : rand($23,29); That should work. Quote Link to comment Share on other sites More sharing options...
hobbes Posted February 9, 2009 Share Posted February 9, 2009 Re: [mccode v2] Lucky Bags Thanks killah, If I wanted to add more rand, how would that work. An example is: $rdmitm = ($r['level'] > 24) ? rand(1,7) : rand(11,15) : rand(19,21) : rand(23,29); which of course is not proper. Along the same lines? Quote Link to comment Share on other sites More sharing options...
Lithium Posted February 9, 2009 Share Posted February 9, 2009 Re: [mccode v2] Lucky Bags Thanks killah, If I wanted to add more rand, how would that work. An example is: $rdmitm = ($r['level'] > 24) ? rand(1,7) : rand(11,15) : rand(19,21) : rand(23,29); which of course is not proper. Along the same lines? @hobbes $var = (condition) ? TRUE : FALSE; (a faster and better usage for simple if/else statements) You want an array() that can give one of those items interval... Quote Link to comment Share on other sites More sharing options...
jeremy1231 Posted March 31, 2015 Share Posted March 31, 2015 How would you make a button that asks how many bags you want to open (say max 2000 per day), then when they click the button it automatically opens the number of bags they entered? Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted March 31, 2015 Share Posted March 31, 2015 Inside the buy function create a for loop and loop through it x amount of times Quote Link to comment Share on other sites More sharing options...
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.