AdamHull Posted January 19, 2020 Posted January 19, 2020 (edited) Â Edited January 19, 2020 by adamhull 3 Quote
Eurogangster Posted January 20, 2020 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
AdamHull Posted January 20, 2020 Author 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
Dayo Posted January 20, 2020 Posted January 20, 2020 To cut down on code you could just use if (mt_rand(0, 1)) { //true } else { //false } Â 1 1 Quote
Eurogangster Posted January 20, 2020 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
Longshot Posted January 23, 2020 Posted January 23, 2020 All works well, thanks for the module! 😎 1 1 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.