Jump to content

It worked a week ago...


datalee100

Recommended Posts

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...)

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.