datalee100 Posted September 26, 2007 Share Posted September 26, 2007 I have a code: no changes have been made to it and all of the files need are intact, but it's not working. My code is: <?php $one= $slots[array_rand($slots,1)]; $two= $slots[array_rand($slots,1)]; $three= $slots[array_rand($slots,1)]; echo "<img src=\"/" . $one ."\">\n"; echo "<img src=\"/" . $two ."\">\n"; echo "<img src=\"/" . $three ."\">\n"; ?> Which puts out a set of "cards" (It's a trading card site) that makes a very functional slots game with this code for the rewards: <?php if ($one == $two && $two == $three) { include('rand-cards.php'); echo ' '; include('rand-cards.php'); echo ' '; include('rand-cards.php'); echo ' '; include('rand-cards.php'); echo ' '; if ($one == "ebonycards/slots/05.gif") { include('rand-cards.php'); echo ' '; include('rand-cards.php'); } } ?> The if statement is saying that if there is a special match, such as the red seven on any other game of slots, it will give a different reward. The base is 4 cards and the special is the 4 plus two more. The special match is not showing off a different reward upon execution. There is an include at the top for the randomizer in the slot images, this code is: <?php $slots = array ( "ebonycards/slots/01.gif", "ebonycards/slots/02.gif", "ebonycards/slots/03.gif", "ebonycards/slots/04.gif", "ebonycards/slots/05.gif" ); ?> Simple, basic, and unchanged from before. Why is there suddenly a problem? (The site is http://blackwings.clavis-sama.com/ebonycards/slots.php if you want to visit it and see...) Quote Link to comment Share on other sites More sharing options...
datalee100 Posted September 28, 2007 Author Share Posted September 28, 2007 *BUMP* Any help? Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted September 28, 2007 Share Posted September 28, 2007 what is the problem? Quote Link to comment Share on other sites More sharing options...
datalee100 Posted September 28, 2007 Author Share Posted September 28, 2007 The base is 4 cards and the special is the 4 plus two more. The special match is not showing off a different reward upon execution. Sorry, it's kind-of hidden in there... Quote Link to comment Share on other sites More sharing options...
datalee100 Posted October 25, 2007 Author Share Posted October 25, 2007 Just putting it back to the top if anyone has any ideas... Please help? Quote Link to comment Share on other sites More sharing options...
datalee100 Posted December 19, 2007 Author Share Posted December 19, 2007 I started this one a while ago and I was wondering if anyone had any solution to why it's not working when it was before. Please? 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.