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
https://forums.phpfreaks.com/topic/70712-it-worked-a-week-ago/
Share on other sites

  • 4 weeks later...
  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

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