AdamHull Posted January 19, 2020 Share Posted January 19, 2020 (edited) Edited January 19, 2020 by adamhull 3 Quote Link to comment Share on other sites More sharing options...
Eurogangster Posted January 20, 2020 Share Posted January 20, 2020 Make this change because it doesnt work your rand it pays you in the 2 and not in the 1 so : $rand = mt_rand(1,2); if ($rand != 1) { Quote Link to comment Share on other sites More sharing options...
AdamHull Posted January 20, 2020 Author Share Posted January 20, 2020 (edited) if($rand ==1){ No Payout }else{ Payout } [\code] This works and also wouldn't make a a difference as to what you have posted as it payout on a 50/50 chance so paying out on one or two is the same 🙂 Edited January 20, 2020 by adamhull Quote Link to comment Share on other sites More sharing options...
Dayo Posted January 20, 2020 Share Posted January 20, 2020 To cut down on code you could just use if (mt_rand(0, 1)) { //true } else { //false } 1 1 Quote Link to comment Share on other sites More sharing options...
Eurogangster Posted January 20, 2020 Share Posted January 20, 2020 i tried with my way adam and its working perfect. Make echo to see the results and see when you get money and when not you ll see that when number is 2 you get money but you defined to get when the number is 1 Quote Link to comment Share on other sites More sharing options...
Longshot Posted January 23, 2020 Share Posted January 23, 2020 All works well, thanks for the module! 😎 1 1 Quote Link to comment Share on other sites More sharing options...
MNG Posted January 23, 2020 Share Posted January 23, 2020 If it ain't broke, don't fix it 😄 1 Quote Link to comment Share on other sites More sharing options...
athena26 Posted June 26, 2021 Share Posted June 26, 2021 Nice mod 😉 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.