Jump to content
MakeWebGames

Recommended Posts

Posted (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 by corruptcity || skalman
<br /> issue.
Posted

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.

Posted (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 by Djkanna
  • 9 months later...
Posted

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.

sml1.jpg.5e3a56abdc37423592ee74bd09093a0b.jpg

sml2.jpg.7dfffd91c84bbd2d74739efc84742f4c.jpg

sml3.jpg.5f9c0ad5b415ab15ca11fa2b080f381d.jpg

sml4.jpg.3b27c625f32d73dba48936b3f757ea9f.jpg

sml5.jpg.5bc54027a557499f6805a73dd195d770.jpg

Posted
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-

Posted (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 by Djkanna
Code highlighter bug.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...