corruptcity || skalman Posted May 4, 2011 Posted May 4, 2011 (edited) Hi i got bored and decided to recode the stock slot machine and add lines into it increasing the potential rewards the code has been secured to the best of my abilities and i have tested it and it works on my game. You can use the demo account on my game to test the slot machine out username and password is both demo here is the code slotmachine.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited May 4, 2011 by corruptcity || skalman <br /> issue. Quote
rulerofzu Posted May 4, 2011 Posted May 4, 2011 line 98 is wrong $u should be % although you dont really need to use sprintf for any of the code. Your code for chosing the amount of lines will never work. No matter what you chose it will show 3 lines. 1st, 2nd and 3rd just in a random order. Quote
Djkanna Posted May 4, 2011 Posted May 4, 2011 (edited) if ($lines == 1) { } not if ($lines = 1) { } same with the other if ($lines = x) statements, you can always assign the value of x to the $lines variable, that's why it's only showing three, rather than the option you selected. Edited May 5, 2011 by Djkanna Quote
rulerofzu Posted May 4, 2011 Posted May 4, 2011 In fact all your queries are incorrect $ rather than % Quote
corruptcity || skalman Posted May 4, 2011 Author Posted May 4, 2011 whoops on the $u for the userid and for the little table it shows it all no matter how many lines you pick although with a few if statements u can change that to only show the lines your playing and line 4 and 5 are diagional line hence why you only see 3 lines Quote
corruptcity || skalman Posted February 17, 2012 Author Posted February 17, 2012 hi as a player on my game found a bug with the original script where you was able to bet with money you didnt have i fixed the bug and added images to show where each of the 5 lines are and am gonna post the new code for it if you used the original you just need to paste the code in the file get the 5 images then change the image links in the drop down box You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Djkanna Posted February 18, 2012 Posted February 18, 2012 if ($lines == 1) { } not if ($lines = 1) { } same with the other if ($lines = x) statements, you can always assign the value of x to the $lines variable, that's why it's only showing three, rather than the option you selected. -msg2short- Quote
corruptcity || skalman Posted February 18, 2012 Author Posted February 18, 2012 if you view the 5 photos or even the last photo u can see how you get 5 lines from 3 lines Quote
Djkanna Posted February 18, 2012 Posted February 18, 2012 (edited) I swear I am talking to myself. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This will always execute [($lines = 1) ret:true], no matter what lines you select. Now the question remains, why bother even giving them the option to pick lines? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Example script. Output: Var 1 passed. Wait that's not right surely? Edit: Not to mention, you've got undefined constants in your script, well either that or you've missed the $ from a couple of variables. :) Edited February 18, 2012 by Djkanna Code highlighter bug. 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.