Jump to content
MakeWebGames

Fully Unique

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Everything posted by Fully Unique

  1. looks a bit view sourcey
  2. this thread wasnt made for you guys to go on about my name
  3. i dont know the error, im sure its in the ratings.php file because thats the only file.
  4. Yeh i fixed that part, still fails to work, pretty sure theres an error in the rating.php file
  5. im having alot of trouble with this rating mod. i got it all uploaded and display is fine but when i go to rate (positive or negative) the page its licking me to doesnt exist. Can someone please help? heres the link: [redbox]Link removed, links to competitive forums and or copycats aren't allowed[/redbox]
  6. This aint working for me, i got to propose to someone and i get this error: QUERY ERROR: Column count doesn't match value count at row 1 Query was INSERT INTO proposals VALUES ('', '1', '2')
  7. ScreenShot
  8. I fixed it all up, word wrapped and stuff, i did get this from a site a white back, dont remember what one. I just found it today and decided to make it into a mod.
  9. its a free script, i just made it into an mod, would be nice if someone word wrapped it for me :)
  10. I found this script laying around on my pc and i turned it into a mod. First File: Contact.php <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Email Form</title> </head> <body> <form method="post" action="sendeail.php"> <?php $ipi = getenv("REMOTE_ADDR"); $httprefi = getenv ("HTTP_REFERER"); $httpagenti = getenv ("HTTP_USER_AGENT"); ?> <input type="hidden" name="ip" value="<?php echo $ipi ?>" /> <input type="hidden" name="httpref" value="<?php echo $httprefi ?>" /> <input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" /> Your Name: <input type="text" name="visitor" size="35" /> Your Email: <input type="text" name="visitormail" size="35" /> Attention: <select name="attn" size="1"> <option value=" Sales n Billing ">Suggestions</option> <option value=" General Support ">Staff Positions</option> <option value=" Technical Support ">Bugs/Errors</option> <option value=" Webmaster ">Other</option> </select> Mail Message: <textarea name="notes" rows="4" cols="40"></textarea> <input type="submit" value="Send Mail" /> </form> </body> </html> And upload it Second file: contactus.php <?php include "globals.php"; include "contact.php"; $h->endpage(); ?>   Third File: sendeail.php <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Sendemail Script</title> </head> <body> <?php $ip = $_POST['ip']; $httpref = $_POST['httpref']; $httpagent = $_POST['httpagent']; $visitor = $_POST['visitor']; $visitormail = $_POST['visitormail']; $notes = $_POST['notes']; $attn = $_POST['attn']; if (eregi('http:', $notes)) { die ("Do NOT try that! ! "); } if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,"."))) { echo "<h2>Use Back - Enter valid e-mail</h2>\n"; $badinput = "<h2>Feedback was NOT submitted</h2>\n"; echo $badinput; die ("Go back! ! "); } if(empty($visitor) || empty($visitormail) || empty($notes )) { echo "<h2>Use Back - fill in all fields</h2>\n"; die ("Use back! ! "); } $todayis = date("l, F j, Y, g:i a") ; $attn = $attn ; $subject = $attn; $notes = stripcslashes($notes); $message = " $todayis [EST] \n Attention: $attn \n Message: $notes \n From: $visitor ($visitormail)\n Additional Info : IP = $ip \n Browser Info: $httpagent \n Referral : $httpref \n "; $from = "From: $visitormail\r\n"; mail("YOUR EMAIL", $subject, $message, $from); ?> <p align="center"> Date: <?php echo $todayis ?> Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> ) Attention: <?php echo $attn ?> Message: <?php $notesout = str_replace("\r", " ", $notes); echo $notesout; ?> <?php echo $ip ?> [url="contact.php"] Next Page [/url] </p> </body> </html> Make sure you edit "YOUR EMAIL" to whatever your email is. Fourth File: go to your mainmenu.php and add this where ever you please. [url='contactus.php']Contact Us[/url]
  11. I found a few problems and fixed them.   <?php require "globals.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); print "<h3>Black Jack</h3>"; if ($_SESSION['bj'] != ''){ for($i = 1; $i < 25; $i++) { $card[$i] = $_SESSION['card' . $i]; } } if (isset($_GET['start'])) { if ($_SESSION['bj'] != 1){ $i = 1; while ($i < 24){ $t = 0; $card[$i] = rand(1,48); for($a = 1; $a < 25; $a++) { if ($card[$i] != $card[$a]){ $t++; } } if ($t == 23) { $i++; } } $_SESSION['total_cards'] = 2; $_SESSION['bj'] = 1; for($i = 1; $i < 25; $i++) { $_SESSION['card' . $i] = $card[$i]; } } } if ($_SESSION['bj'] == 1){ if (isset($_GET['hit'])) { $_SESSION['total_cards'] = $_SESSION['total_cards'] + 1; } $total_cards = $_SESSION['total_cards']; for($i = 1; $i < ($total_cards + 1); $i++) { if ($card[$i] == 8 OR $card[$i] == 16 OR $card[$i] == 24 OR $card[$i] == 32){ $value = '11'; } else if ($card[$i] == 12 OR $card[$i] == 24 OR $card[$i] == 36 OR $card[$i] == 48){$value = '10'; } else if ($card[$i] == 11 OR $card[$i] == 23 OR $card[$i] == 35 OR $card[$i] == 47){$value = '10'; } else if ($card[$i] == 10 OR $card[$i] == 22 OR $card[$i] == 34 OR $card[$i] == 46){$value = '10'; } else if ($card[$i] == 9 OR $card[$i] == 21 OR $card[$i] == 33 OR $card[$i] == 45){$value = '10'; } else if ($card[$i] == 8 OR $card[$i] == 20 OR $card[$i] == 32 OR $card[$i] == 44){$value = '9'; } else if ($card[$i] == 7 OR $card[$i] == 19 OR $card[$i] == 31 OR $card[$i] == 43){$value = '8'; } else if ($card[$i] == 6 OR $card[$i] == 18 OR $card[$i] == 30 OR $card[$i] == 42){$value = '7'; } else if ($card[$i] == 5 OR $card[$i] == 17 OR $card[$i] == 29 OR $card[$i] == 41){$value = '6'; } else if ($card[$i] == 4 OR $card[$i] == 16 OR $card[$i] == 28 OR $card[$i] == 40){$value = '5'; } else if ($card[$i] == 3 OR $card[$i] == 15 OR $card[$i] == 27 OR $card[$i] == 39){$value = '4'; } else if ($card[$i] == 2 OR $card[$i] == 14 OR $card[$i] == 26 OR $card[$i] == 38){$value = '3'; } else if ($card[$i] == 1 OR $card[$i] == 13 OR $card[$i] == 25 OR $card[$i] == 37){$value = '2'; } $total_value = $total_value + $value; } if ($total_value > 21){ for($i = 1; $i < ($total_cards + 1); $i++) { if ($card[$i] == 8 OR $card[$i] == 16 OR $card[$i] == 24 OR $card[$i] == 32){ $ace = $ace + 1; } } while ($total_value > 21 AND $ace > 0){ $ace = $ace - 1; $total_value = $total_value - 10; } } if ($total_cards == 2 AND $total_value == 21){ $_SESSION['bj'] = 6; } if ($total_value > 21){ $_SESSION['bj'] = 2; } if (isset($_GET['stand'])) { while ($comp_total_value < 17){ $ace = 0; $comp_total_cards = $comp_total_cards + 1; $i = $comp_total_cards + 12; if ($card[$i] == 8 OR $card[$i] == 16 OR $card[$i] == 24 OR $card[$i] == 32){ $value = '11'; } else if ($card[$i] == 12 OR $card[$i] == 24 OR $card[$i] == 36 OR $card[$i] == 48){$value = '10'; } else if ($card[$i] == 11 OR $card[$i] == 23 OR $card[$i] == 35 OR $card[$i] == 47){$value = '10'; } else if ($card[$i] == 10 OR $card[$i] == 22 OR $card[$i] == 34 OR $card[$i] == 46){$value = '10'; } else if ($card[$i] == 9 OR $card[$i] == 21 OR $card[$i] == 33 OR $card[$i] == 45){$value = '10'; } else if ($card[$i] == 8 OR $card[$i] == 20 OR $card[$i] == 32 OR $card[$i] == 44){$value = '9'; } else if ($card[$i] == 7 OR $card[$i] == 19 OR $card[$i] == 31 OR $card[$i] == 43){$value = '8'; } else if ($card[$i] == 6 OR $card[$i] == 18 OR $card[$i] == 30 OR $card[$i] == 42){$value = '7'; } else if ($card[$i] == 5 OR $card[$i] == 17 OR $card[$i] == 29 OR $card[$i] == 41){$value = '6'; } else if ($card[$i] == 4 OR $card[$i] == 16 OR $card[$i] == 28 OR $card[$i] == 40){$value = '5'; } else if ($card[$i] == 3 OR $card[$i] == 15 OR $card[$i] == 27 OR $card[$i] == 39){$value = '4'; } else if ($card[$i] == 2 OR $card[$i] == 14 OR $card[$i] == 26 OR $card[$i] == 38){$value = '3'; } else if ($card[$i] == 1 OR $card[$i] == 13 OR $card[$i] == 25 OR $card[$i] == 37){$value = '2'; } $comp_total_value = $comp_total_value + $value; if ($comp_total_value > 21){ for($i = 13; $i < ($comp_total_cards + 13); $i++) { if ($card[$i] == 8 OR $card[$i] == 16 OR $card[$i] == 24 OR $card[$i] == 32){ $ace = $ace + 1; } } while ($comp_total_value > 21 AND $ace > 0){ $ace = $ace - 1; $comp_total_value = $comp_total_value - 10; } } } echo "Player: $total_value Bank: $comp_total_value"; if ($total_value == $comp_total_value){ $_SESSION['bj'] = 5; } if ($total_value < $comp_total_value ){ $_SESSION['bj'] = 4; } if ($total_value > $comp_total_value OR $comp_total_value > 21){ $_SESSION['bj'] = 3; } //win } else { $comp_total_cards = 1; } echo "<table><tr><td>Player </td> <td> Dealer</td></tr>"; if ($_SESSION['total_cards'] > $comp_total_cards){ $rows = $_SESSION['total_cards']; } else { $rows = $comp_total_cards; } for($i = 1; $i < ($rows + 1); $i++) { $c = $i + 12; echo "<tr><td>"; if ($_SESSION['total_cards'] >= $i){ display_card( $card[$i] ); } echo "</td><td>"; if (isset($_GET['stand'])) { if ($comp_total_cards >= $i){ display_card( $card[$c] ); } } else { $p++; if($p == 1){ display_card( $card['13'] ); } else if ($p == 2){ if ($_SESSION['bj'] == 6){ display_card( $card['14'] ); } else { echo "[img=img/back.gif]"; } } } echo "</td></tr>"; } echo "</table>"; } echo "<table><tr>"; if ($_SESSION['bj'] == 1){ ?> <td>[url="blackjack.php?hit"]Hit[/url]</td><td>[url="blackjack.php?stand"]Stand[/url]</td> <? } else { print " [url='blackjack.php?start']Bet[/url]</table>"; } function display_card( $card ){ //Type if ($card < 13){ $type = "s"; } else if ($card < 25){ $type = "c"; } else if ($card < 37){ $type = "h"; } else { $type = "d"; } //Numer if ($card == 8 OR $card == 16 OR $card == 24 OR $card == 32){$card = '14'; } else if ($card == 12 OR $card == 24 OR $card == 36 OR $card == 48){$card = '13'; } else if ($card == 11 OR $card == 23 OR $card == 35 OR $card == 47){$card = '12'; } else if ($card == 10 OR $card == 22 OR $card == 34 OR $card == 46){$card = '11'; } else if ($card == 9 OR $card == 21 OR $card == 33 OR $card == 45){$card = '10'; } else if ($card == 8 OR $card == 20 OR $card == 32 OR $card == 44){$card = '9'; } else if ($card == 7 OR $card == 19 OR $card == 31 OR $card == 43){$card = '8'; } else if ($card == 6 OR $card == 18 OR $card == 30 OR $card == 42){$card = '7'; } else if ($card == 5 OR $card == 17 OR $card == 29 OR $card == 41){$card = '6'; } else if ($card == 4 OR $card == 16 OR $card == 28 OR $card == 40){$card = '5'; } else if ($card == 3 OR $card == 15 OR $card == 27 OR $card == 39){$card = '4'; } else if ($card == 2 OR $card == 14 OR $card == 26 OR $card == 38){$card = '3'; } else if ($card == 1 OR $card == 13 OR $card == 25 OR $card == 37){$card = '2'; } echo "[img=img/" . $type . $card . ".gif]"; } if ($_SESSION['bj'] == 2){ echo " You lose"; unset($_SESSION['bj']); unset($_SESSION['card']); unset($_SESSION['totalcards']); } else if ($_SESSION['bj'] == 3){ echo " You Win!!"; unset($_SESSION['bj']); unset($_SESSION['card']); unset($_SESSION['totalcards']); } else if ($_SESSION['bj'] == 4){ echo " You lose"; unset($_SESSION['bj']); unset($_SESSION['card']); unset($_SESSION['totalcards']); } else if ($_SESSION['bj'] == 5){ //lose echo " Push!"; unset($_SESSION['bj']); unset($_SESSION['card']); unset($_SESSION['totalcards']); } else if ($_SESSION['bj'] == 6){ echo " Black Jack!!"; } $h->endpage(); ?>
×
×
  • Create New...