Jump to content
MakeWebGames

athena26

Members
  • Posts

    195
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by athena26

  1. May I give you some ideas for the attack mod dayo?
  2. Thanks I'll check it out once o arrive home , I have the GL script and also the mcc I run both games . Nice it looks well good I like it What is your budget?
  3. I wanted to check the challenge area to see if it was any good
  4. It doesnt let me download anything in your website
  5. Like players post in forums or dislike
  6. Extract it from cpanel. In your installed modules .extract it then run the SQL
  7. Instal it from the cpanel .. well extract it from there .
  8. I'm Portuguese I could help you translate into Portuguese, or you could use Google translate.
  9. Anyone help me fix this ?
  10. Thanks Hun
  11. So how much is it ? As a premium member do I have to purchase it?
  12. Nice mod 😉
  13. I also get the same error
  14. Hey guys I have a issue with my blackjack No matter what happens win or lose you always use could anyone help me fix this It's also the same issue on videopoker and also on roullete.php it doesn't allow me to spin or win always losing .. This is the blackjack.php <?php include "blackjack_func.php"; include "globals.php"; ?> <script type="text/javascript"> var interval = 1.5; var random_display = 1; var userCash = {USERCASH}; var imagenumber = 0; var txt1 = "{TXT1}"; var txt2 = "{TXT2}"; var txt3 = "{TXT3}"; var txt4 = "{TXT4}"; var scor1 = {SCORE1}; var scor2 = {SCORE2}; var scor3 = {SCORE3}; var scor4 = {SCORE4}; var maxBet = {MAXBET}; var minBet = {MINBET}; var randomnumber=Math.floor(Math.random()*5); randomnumber = randomnumber + 2; interval *= 1000; var image_index = 0; image_list = new Array(); image_list[image_index++] = new imageItem("{DCARD1}"); image_list[image_index++] = new imageItem("{DCARD3}"); image_list[image_index++] = new imageItem("{DCARD4}"); image_list[image_index++] = new imageItem("{DCARD5}"); var number_of_image = image_list.length; function imageItem(image_location) { this.image_item = new Image(); this.image_item.src = image_location; } function get_ImageItemLocation(imageObj) { return(imageObj.image_item.src) } function generate(x, y) { var range = y - x + 1; return Math.floor(Math.random() * range) + x; } function rotateImage(place) { document.getElementById('dealersbutton').disabled = true; var new_image = get_ImageItemLocation(image_list[imagenumber]); document[place].src = new_image; imagenumber++; if(imagenumber==1) { if(scor1>=17){imagenumber=4;} document.getElementById('txtstatus').innerHTML = txt1; place="dealer3"; } if(imagenumber==2) { if(scor2>=17){imagenumber=4;} document.getElementById('txtstatus').innerHTML = txt2; place=\"dealer4\"; } if(imagenumber==3) { if(scor3>=17){imagenumber=4;} document.getElementById('txtstatus').innerHTML = txt3; place="dealer5"; } if(imagenumber==4) { if(scor3>=17){imagenumber=4;} else{document.getElementById('txtstatus').innerHTML = txt4;} document.getElementById('end1').disabled = false; document.getElementById('end2').disabled = false; document.getElementById('finaltext').style.visibility = "visible"; } var recur_call = "rotateImage('"+place+"')"; if(imagenumber<=3) { setTimeout(recur_call, interval); } } function checkform (form) { if(form.betamount.value == "") { alert("You must enter a bet amount!" ); form.betamount.focus(); return false ; } else if(parseInt(form.betamount.value) > userCash) { alert("You don't have that much cash!"); form.betamount.focus(); return false ; } else if(parseInt(form.betamount.value) > maxBet) { alert("That's higher than the bet limit!"); form.betamount.focus(); return false ; } else if(parseInt(form.betamount.value) < minBet) { alert("That's lower than the bet limit!"); form.betamount.focus(); return false ; } return true ; } // End --> </script> <?php echo " <div class='generalinfo_txt'> <div><img src='images/info_left.jpg' alt='' /></div> <div class='info_mid'><h2 style='padding-top:10px;'>Blackjack</h2></div> <div><img src='images/info_right.jpg' alt='' /></div> </div> <div class='generalinfo_simple'><br> <br><br>"; if($ir['level'] < 50) { print "You need to be level 50 or over to access Black Jack.<p> <a href='explore.php'>Back</a>"; $h->endpage(); exit; } if($ir['jail'] or $ir['hospital']) { print "This Page Cannot be Accessed while in Jail or Hospital."; $h->endpage(); exit; } print"<hr /><img src='blackjack.jpg' /> <p>"; $adst=$db->query("SELECT * FROM blackjack_stats LIMIT 1"); $bjstats=$db->fetch_row($adst); if($ir['user_level']==2) { print"<hr /><b> STATS:</b><br /><br /> <b>House Profit:</b> $".number_format($bjstats['houseProfit'])."<br /><br /> <b>Total Plays:</b> ".number_format($bjstats['totalPlays'])."<br /><br /> <hr />"; } print"<b>Blackjack Pays 3 to 2 -- Dealer Stands On All 17 -- No Splits</b>"; $pcar=$db->query("SELECT * FROM blackjack WHERE userid=$userid"); $bb=$db->fetch_row($pcar); $playingbj=$db->num_rows($pcar); print"<br /><br />"; if(!$_GET['act'] || $_GET['act']=='admin') { if($ir['user_level']==1) { print"<br /><b>Minimum Bet:</b> $".number_format($bjstats['minbet'])."<br /> <b>Maximum Bet:</b> $".number_format($bjstats['maxbet']); } else if($ir['user_level']==2) { if($_GET['act']=='admin') { $minbeta=abs(intval($_POST['minbet'])); $maxbeta=abs(intval($_POST['maxbet'])); $db->query("UPDATE blackjack_stats SET minbet=$minbeta, maxbet=$maxbeta"); print"<br /><b>Betting info updated!</b><br /><br />"; $bjstats['minbet']=$minbeta; $bjstats['maxbet']=$maxbeta; } print"<br /><form method=post action=blackjack.php?act=admin> <b>Minimum Bet:</b> <input type=text name=minbet value={$bjstats['minbet']}><br /><br /> <b>Maximum Bet:</b> <input type=text name=maxbet value={$bjstats['maxbet']}><br /> <br /><input type=submit value='Submit Changes'></form>"; } print"<br /><br />"; $defaultbet = ((int)($ir['money']/1000)); if($defaultbet<$bjstats['minbet']){$defaultbet=$bjstats['minbet'];} print"<form action=blackjack.php?act=deal method=post onsubmit='return checkform(this);'> Amount to risk each round:<br /><br /> $<input type=text name=betamount value=$defaultbet size=6><br /><br /><br /> <input type=submit value='Set Bet And Start Playing!'> </form>"; } else if($_GET['act']=='deal') { $betamt=abs(intval($_POST['betamount'])); if($betamt > $ir['money']) { $error='Sorry, you do not have that much money.<br />&gt;<a href=blackjack.php>Back</a>'; } if($betamt < $bjstats['minbet']) { $error='Sorry, that is lower than the minimum bet.<br />&gt;<a href=blackjack.php>Back</a>'; } if($betamt > $bjstats['maxbet']) { $error='Sorry, that is greater than the maximum bet.<br />&gt;<a href=blackjack.php>Back</a>'; } if($betamt <= 0) { $error='Sorry, you must bet more than $0.<br />&gt;<a href=blackjack.php>Back</a>'; } if(!$error) { $db->query("UPDATE users SET money=money-$betamt WHERE userid=$userid"); $db->query("UPDATE blackjack_stats SET houseProfit=houseProfit+$betamt, totalPlays=totalPlays+1"); print"You bet: <b>$".number_format($betamt)."</b>.<br /><br />"; deal_cards($userid, $betamt); $cards=show_cards($userid, 1); print"$cards<br />"; print"<form method=post action='blackjack.php?act=hit'><input type=submit value='Hit'></form> &nbsp;&nbsp;<form method=post action='blackjack.php?act=stand'><input type=submit value='Stand'></form> &nbsp;&nbsp;<form method=post action='blackjack.php?act=double'><input type=submit value='Double Down'></form>"; } else { print $error; } } else if($_GET['act']=='hit') { if(!$playingbj) { $error="You do not have an active blackjack game. Begin a new one <a href=blackjack.php>HERE</a>."; } if(!$error) { print"You bet: <b>$".number_format($bb['betAmount'])."</b>.<br /><br />"; $db->query("UPDATE blackjack SET uNumHits=uNumHits+1 WHERE userid=$userid"); $cards=show_cards($userid, 1); $playerhas = calc_playerscore($userid); print"$cards<br />"; if($playerhas > 21) { print "You went bust."; $db->query("DELETE FROM blackjack WHERE userid=$userid"); print"<form method=post action='blackjack.php?act=deal'><input type=hidden name=betamount value={$bb['betAmount']}><input type=submit value='New Game Same Bet'></form> &nbsp;&nbsp;<form method=post action='blackjack.php'><input type=submit value='New Game Change Bet'></form>"; } else { print"<form method=post action='blackjack.php?act=hit'><input type=submit value='Hit'></form> &nbsp;&nbsp;<form method=post action='blackjack.php?act=stand'><input type=submit value='Stand'></form>"; //<input type=submit value='Double'> } } else { print $error; } } else if($_GET['act']=='double')/////////////////////////////////////////////////////////////////////////////////////////////// { if(!$playingbj) { $error="You do not have an active blackjack game. Begin a new one <a href=blackjack.php>HERE</a>."; } if($bb['uNumHits']>0) { $error="You cannot double down after you have hit."; } if(!$error) { $oldbet=$bb['betAmount']; $bb['betAmount']=$bb['betAmount']*2; $db->query("UPDATE blackjack SET betAmount={$bb['betAmount']} WHERE userid=$userid"); $db->query("UPDATE users SET money=money-$oldbet WHERE userid=$userid"); print"You bet: <b>$".number_format($bb['betAmount'])." (Doubled Down)</b>.<br /><br />"; $db->query("UPDATE blackjack SET uNumHits=uNumHits+1 WHERE userid=$userid"); $playerhas = calc_playerscore($userid); if($playerhas > 21) { $cards=show_cards($userid, 1); print"$cards<br />"; print "You went bust."; $db->query("DELETE FROM blackjack WHERE userid=$userid"); print"<form method=post action='blackjack.php?act=deal'><input type=hidden name=betamount value=$oldbet><input type=submit value='New Game Same Bet'></form> &nbsp;&nbsp;<form method=post action='blackjack.php'><input type=submit value='New Game Change Bet'></form>"; } else { dealer_play($userid); $dscore=calc_dealerscore($userid); $cards=show_cards($userid, 2); print"<button name='dealersbutton' id='dealersbutton' onClick=\"rotateImage('dealer1')\">Click to begin dealer's turn</button><br />"; print"$cards<br />"; $win=find_winner($userid); if($win==-1) //push { $winamt=$bb['betAmount']; $wtxt="You and the dealer tied. You received your bet amount back."; $db->query("UPDATE users SET money=money+$winamt WHERE userid=$userid"); } else if($win==1) //reg win { $winamt=$bb['betAmount']*2; $wtxt="Your hand beat the dealer's!"; $db->query("UPDATE users SET money=money+$winamt WHERE userid=$userid"); } else if($win==2) //blackjack { $winamt=($bb['betAmount']*2)+($bb['betAmount']/2); $wtxt="Your blackjack beat the dealer's hand!"; $db->query("UPDATE users SET money=money+$winamt WHERE userid=$userid"); } else //no win { $wtxt="You lost to the dealer!"; $winamt=0; } print"<div id=\"finaltext\" style=\"visibility:hidden\">$wtxt <br /><b>$".number_format($winamt)."</b> was added to your wallet!<br /><br /></div>"; $db->query("DELETE FROM blackjack WHERE userid=$userid"); print"<form method=post action='blackjack.php?act=deal'><input type=hidden name=betamount value=$oldbet> <input type=submit id='end1' disabled=true value='New Game Same Bet'></form> &nbsp;&nbsp;<form method=post action='blackjack.php'><input type=submit id='end2' disabled=true value='New Game Change Bet'></form>"; } } else { print $error; } } else if($_GET['act']=='stand') { $playerhas = calc_playerscore($userid); if($playerhas > 21) //to prevent cheaters. { $error= "You went bust."; $db->query("DELETE FROM blackjack WHERE userid=$userid"); } if(!$playingbj) { $error="You do not have an active blackjack game. Begin a new one <a href=blackjack.php>HERE</a>."; } if(!$error) { print"You bet: <b>$".number_format($bb['betAmount'])."</b>.<br /><br />"; dealer_play($userid); $dscore=calc_dealerscore($userid); $cards=show_cards($userid, 2); print"<button name='dealersbutton' id='dealersbutton' onClick='rotateImage('dealer1');'>Click to begin dealer's turn</button><br />"; print"$cards<br />"; $win=find_winner($userid); if($win==-1) //push { $winamt=$bb['betAmount']; $wtxt="You and the dealer tied. You received your bet amount back."; $db->query("UPDATE users SET money=money+$winamt WHERE userid=$userid"); } else if($win==1) //reg win { $winamt=$bb['betAmount']*2; $wtxt="Your hand beat the dealer's!"; $db->query("UPDATE users SET money=money+$winamt WHERE userid=$userid"); } else if($win==2) //blackjack { $winamt=($bb['betAmount']*2)+($bb['betAmount']/2); $wtxt="Your blackjack beat the dealer's hand!"; $db->query("UPDATE users SET money=money+$winamt WHERE userid=$userid"); } else //no win { $wtxt="You lost to the dealer!"; $winamt=0; } print"<div id=\"finaltext\" style=\"visibility:hidden\">$wtxt <br /><b>$".number_format($winamt)."</b> was added to your wallet!<br /><br /></div>"; $db->query("DELETE FROM blackjack WHERE userid=$userid"); print"<form method=post action='blackjack.php?act=deal'><input type=hidden name=betamount value={$bb['betAmount']}> <input type=submit id='end1' disabled=true value='New Game Same Bet'></form> &nbsp;&nbsp;<form method=post action='blackjack.php'><input type=submit disabled=true id='end2' value='New Game Change Bet'></form><p><a href=floatingcasino.php>Back to Casino</a>"; } else { print $error; } } $h->endpage(); ?> Blackjack_func.php <?php function show_cards($user, $type) { global $db,$ir; $pcr=$db->query("SELECT * FROM blackjack WHERE userid=$user", $c) or die(mysqli_error()); $pcr2=$db->fetch_row($pcr); //player $c5=$pcr2['c6n']; $c6=$pcr2['c6s']; $c7=$pcr2['c7n']; $c8=$pcr2['c7s']; $c9=$pcr2['c8n']; $c10=$pcr2['c8s']; $c11=$pcr2['c9n']; $c12=$pcr2['c9s']; $c13=$pcr2['c10n']; $c14=$pcr2['c10s']; //dealer $c1=$pcr2['c1n']; $c2=$pcr2['c1s']; $c3=$pcr2['c2n']; $c4=$pcr2['c2s']; $c15=$pcr2['c3n']; $c16=$pcr2['c3s']; $c17=$pcr2['c4n']; $c18=$pcr2['c4s']; $c19=$pcr2['c5n']; $c20=$pcr2['c5s']; $d1=return_cardpic($c1, $c2, 'dealer1'); $d2=return_cardpic($c3, $c4, 'dealer2'); $d3=return_cardpic($c15, $c16, 'dealer3'); $d4=return_cardpic($c17, $c18, 'dealer4'); $d5=return_cardpic($c19, $c20, 'dealer5'); $u1=return_cardpic($c5, $c6, 'player1'); $u2=return_cardpic($c7, $c8, 'player2'); $u3=return_cardpic($c9, $c10, 'player3'); $u4=return_cardpic($c11, $c12, 'player4'); $u5=return_cardpic($c13, $c14, 'player5'); $playerhas = calc_playerscore($user); $firstfivecards="<table> <tr><th colspan=100%>Dealer</th></tr><tr><td align=center>"; if($type==1) { $firstfivecards.="<img name='dealer1' src='Images/blankcard.gif'>"; } else { $dealerhas = calc_dealerscore($user); //$firstfivecards.="$d1"; $firstfivecards.="<img name='dealer1' src='Images/blankcard.gif'>"; } $firstfivecards.="</td><td align=center>$d2</td>"; $dhits=$pcr2['dNumHits']; if($dhits>=1) { $firstfivecards.="<td align=center><img name='dealer3' src='Images/idontexist.gif'></td>"; } if($dhits>=2) { $firstfivecards.="<td align=center><img name='dealer4' src='Images/idontexist.gif'></td>"; } if($dhits>=3) { $firstfivecards.="<td align=center><img name='dealer5' src='Images/idontexist.gif'></td>"; } $firstfivecards.="</tr>"; if($type==1) { $firstfivecards.="<tr><td align=center colspan=100%>Dealer shows ".bjvardvalue($pcr2['c2n']).".</td></tr>"; } if($type==2) { $firstfivecards.="<tr><td align=center colspan=100%><span id='txtstatus'>Dealer has ".bjvardvalue($pcr2['c2n']).".</span></td></tr>"; } $firstfivecards.=" <tr><td colspan=100%>&nbsp;</td></tr> <tr><th colspan=100%>Player</th></tr><tr> <td align=center>$u1</td> <td align=center>$u2</td>"; $hits=$pcr2['uNumHits']; if($hits>=1) { $firstfivecards.="<td align=center>$u3</td>"; } if($hits>=2) { $firstfivecards.="<td align=center>$u4</td>"; } if($hits>=3) { $firstfivecards.="<td align=center>$u5</td>"; } $firstfivecards.="</tr><tr><td align=center colspan=100%>Player has $playerhas.</td></tr></table>"; return $firstfivecards; } function find_winner($userid) { global $db,$ir; $pscore=calc_playerscore($userid); $dscore=calc_dealerscore($userid); if($pscore==$dscore) { return -1; //push } if($pscore>$dscore && $pscore<=21) //player has higher score than dealer { if($pscore==21) //player has blackjack { return 2;//blackjack, 3 to 2 payout } else //player has regular high score { return 1;//no blackjack, 1 to 1 payout } } if($dscore>21) //dealer bust { return 1;//1 to 1 payout } } function calc_playerscore($userid) { global $db,$ir; $lp=$db->query("SELECT * FROM blackjack WHERE userid=$userid", $c) or die(mysqli_error()); $pcr2=$db->fetch_row($lp); $c1=$pcr2['c6n']; $c2=$pcr2['c7n']; $c3=$pcr2['c8n']; $c4=$pcr2['c9n']; $c5=$pcr2['c10n']; $hits=$pcr2['uNumHits']; if($c1>10 && $c1 != 14){$c1=10;} if($c2>10 && $c2 != 14){$c2=10;} if($c3>10 && $c3 != 14){$c3=10;} if($c4>10 && $c4 != 14){$c4=10;} if($c5>10 && $c5 != 14){$c5=10;} $ace=0; if($c1==14){$c1=11;$ace++;} if($c2==14){$c2=11;$ace++;} $score=$c1+$c2; if($hits==1) { if($c3==14){$c3=11;$ace++;} $score+=$c3; } if($hits==2) { if($c3==14){$c3=11;$ace++;} if($c4==14){$c4=11;$ace++;} $score+=$c3 + $c4; } if($hits==3) { if($c3==14){$c3=11;$ace++;} if($c4==14){$c4=11;$ace++;} if($c5==14){$c5=11;$ace++;} $score+=$c3 + $c4 + $c5; } if($score>21 && $ace>0) { while($ace>0) { $ace--; $score-=10; } } return $score; } function bjvardvalue($cardnum) { if($cardnum==14){return 11;} else if($cardnum>10){return 10;} else{return $cardnum;} } function dealer_play($userid) { global $db,$ir; $i=0; $dscore=calc_dealerscore($userid); while($dscore<17 && $i <= 3) { $i++; $db->query("UPDATE blackjack SET dNumHits=dNumHits+1 WHERE userid=$userid"); $dscore=calc_dealerscore($userid); } } function calc_dealerscore($userid) { global $db,$ir; $lp=$db->query("SELECT * FROM blackjack WHERE userid=$userid", $c) or die(mysqli_error()); $pcr2=$db->fetch_row($lp); $c1=$pcr2['c1n']; $c2=$pcr2['c2n']; $c3=$pcr2['c3n']; $c4=$pcr2['c4n']; $c5=$pcr2['c5n']; $hits=$pcr2['dNumHits']; if($c1>10 && $c1 != 14){$c1=10;} if($c2>10 && $c2 != 14){$c2=10;} if($c3>10 && $c3 != 14){$c3=10;} if($c4>10 && $c4 != 14){$c4=10;} if($c5>10 && $c5 != 14){$c5=10;} $ace=0; if($c1==14){$c1=11;$ace++;} if($c2==14){$c2=11;$ace++;} $score=$c1+$c2; if($hits==1) { if($c3==14){$c3=11;$ace++;} $score+=$c3; } if($hits==2) { if($c3==14){$c3=11;$ace++;} if($c4==14){$c4=11;$ace++;} $score+=$c3 + $c4; } if($hits==3) { if($c3==14){$c3=11;$ace++;} if($c4==14){$c4=11;$ace++;} if($c5==14){$c5=11;$ace++;} $score+=$c3 + $c4 + $c5; } if($score>21 && $ace>0) { while($ace>0) { $ace--; $score-=10; } } return $score; } function deal_cards($userid, $betamt) { global $db,$ir; $alreadyplaying=$db->num_rows($db->query("SELECT * FROM blackjack WHERE userid=$userid")); if(!$alreadyplaying) { srand(time()); $_SESSION['blankcard']="<img src='Images/blankcard.gif'>"; $deckofcards= array("14|h", "14|c", "14|d", "14|s", "2|h", "2|c", "2|d", "2|s", "3|h", "3|c", "3|d", "3|s", "4|h", "4|c", "4|d", "4|s", "5|h", "5|c", "5|d", "5|s", "6|h", "6|c", "6|d", "6|s", "7|h", "7|c", "7|d", "7|s", "8|h", "8|c", "8|d", "8|s", "9|h", "9|c", "9|d", "9|s", "10|h", "10|c", "10|d", "10|s", "11|h", "11|c", "11|d", "11|s", "12|h", "12|c", "12|d", "12|s", "13|h", "13|c", "13|d", "13|s"); $card=rand(1,52);$card--; $cardvals= explode("|", $deckofcards["$card"]); $c1n=intval($cardvals[0]);//$c1n=2; $c1s="{$cardvals[1]}";//$c1s="s"; unset($deckofcards["$card"]);rsort($deckofcards); $card=rand(1,51);$card--; $cardvals= explode("|", $deckofcards["$card"]); $c2n=intval($cardvals[0]);//$c2n=12; $c2s="{$cardvals[1]}";//$c2s="s"; unset($deckofcards["$card"]);rsort($deckofcards); $card=rand(1,50);$card--; $cardvals= explode("|", $deckofcards["$card"]); $c3n=intval($cardvals[0]);//$c3n=14; $c3s="{$cardvals[1]}";//$c3s="s"; unset($deckofcards["$card"]);rsort($deckofcards); $card=rand(1,49);$card--; $cardvals= explode("|", $deckofcards["$card"]); $c4n=intval($cardvals[0]);//$c4n=14; $c4s="{$cardvals[1]}";//$c4s="s"; unset($deckofcards["$card"]);rsort($deckofcards); $card=rand(1,48);$card--; $cardvals= explode("|", $deckofcards["$card"]); $c5n=intval($cardvals[0]);//$c5n=13; $c5s="{$cardvals[1]}";//$c5s="s"; unset($deckofcards["$card"]);rsort($deckofcards); $card=rand(1,47);$card--; $cardvals= explode("|", $deckofcards["$card"]); $c6n=intval($cardvals[0]);//$c6n=14; $c6s="{$cardvals[1]}"; unset($deckofcards["$card"]);rsort($deckofcards); $card=rand(1,46);$card--; $cardvals= explode("|", $deckofcards["$card"]); $c7n=intval($cardvals[0]);//$c7n=10; $c7s="{$cardvals[1]}"; unset($deckofcards["$card"]);rsort($deckofcards); $card=rand(1,45);$card--; $cardvals= explode("|", $deckofcards["$card"]); $c8n=intval($cardvals[0]); $c8s="{$cardvals[1]}"; unset($deckofcards["$card"]);rsort($deckofcards); $card=rand(1,44);$card--; $cardvals= explode("|", $deckofcards["$card"]); $c9n=intval($cardvals[0]); $c9s="{$cardvals[1]}"; unset($deckofcards["$card"]);rsort($deckofcards); $card=rand(1,43);$card--; $cardvals= explode("|", $deckofcards["$card"]); $c10n=intval($cardvals[0]); $c10s="{$cardvals[1]}"; unset($deckofcards["$card"]);rsort($deckofcards); $db->query("INSERT INTO blackjack VALUES('', $userid, $betamt, 0, 0, $c1n, '$c1s', $c2n, '$c2s', $c3n, '$c3s', $c4n, '$c4s', $c5n, '$c5s', $c6n, '$c6s', $c7n, '$c7s', $c8n, '$c8s', $c9n, '$c9s', $c10n, '$c10s')") or die(mysqli_error()); } } function return_cardpic($num, $suit, $name) { if($num==11){$num="jack";} if($num==12){$num="queenof";} if($num==13){$num="king";} if($num==1 || $num==14){$num="ace";} if($suit=="d"){$suit="diamonds";} if($suit=="c"){$suit="clubs";} if($suit=="s"){$suit="spades";} if($suit=="h"){$suit="hearts";} $cardlink="<img name='$name' src='Images/".$num.$suit.".gif'>"; return $cardlink; } function num_2_name($num) { global $db,$ir; if($num==11){$num="Jack";} if($num==12){$num="Queen";} if($num==13){$num="King";} if($num==1 || $num==14){$num="Ace";} return $num; } function num_to_suit($num) { if($num==1){$suit="d";} if($num==2){$suit="c";} if($num==3){$suit="s";} if($num==4){$suit="h";} return $suit; } ?> - -- Table structure for table `blackjack` -- CREATE TABLE `blackjack` ( `id` int(11) NOT NULL, `userid` int(11) NOT NULL, `betAmount` int(11) NOT NULL, `uNumHits` int(3) NOT NULL DEFAULT '0', `dNumHits` int(3) NOT NULL DEFAULT '0', `c1n` int(3) NOT NULL, `c1s` varchar(3) NOT NULL, `c2n` int(3) NOT NULL, `c2s` varchar(3) NOT NULL, `c3n` int(3) NOT NULL, `c3s` varchar(3) NOT NULL, `c4n` int(3) NOT NULL, `c4s` varchar(3) NOT NULL, `c5n` int(3) NOT NULL, `c5s` varchar(3) NOT NULL, `c6n` int(3) NOT NULL, `c6s` varchar(3) NOT NULL, `c7n` int(3) NOT NULL, `c7s` varchar(3) NOT NULL, `c8n` int(3) NOT NULL, `c8s` varchar(3) NOT NULL, `c9n` int(3) NOT NULL, `c9s` varchar(3) NOT NULL, `c10n` int(3) NOT NULL, `c10s` varchar(3) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `blackjack_stats` -- CREATE TABLE `blackjack_stats` ( `houseProfit` int(11) NOT NULL, `totalPlays` int(11) NOT NULL, `minbet` int(11) NOT NULL DEFAULT '100', `maxbet` int(11) NOT NULL DEFAULT '1000' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `blackjack_stats` -- INSERT INTO `blackjack_stats` (`houseProfit`, `totalPlays`, `minbet`, `maxbet`) VALUES (6550145, 19, 10000, 1000000); -- -- Indexes for dumped tables -- -- -- Indexes for table `blackjack` -- ALTER TABLE `blackjack` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `blackjack` -- ALTER TABLE `blackjack` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; COMMIT;
  15. This will include alot of graphic work and slot of effort by the creator , example like cod mobile on gun upgrading. .. make like a 50 tier Every month for the members. Which will also have a hard progress in making. My GL ideas sound crazy . But for a game to be successful it needs to have there members wanting more. Rome wasn't made in a day how ever this idea is possible. I do know the topic about what would be nice to see in a inventory .. but 50 tier pass from call of duty could be created into Gl . It be a like editing daily logins to something much greater .
  16. For inventory make there be items your allowed to take to boost certain stats or stats skills, of 'ammo power '. . 'jail skill' 'Hospital healing skill ' Makes items craftable so example you can upgrade certain guns or potions . Example upgrade M16 you will need Blah blah items ..gun max level are level 5 ,to upgrade items it's needed donations that could be purchased . To upgrade each weapon or item , add a link to jail,crimes, hospital were userid can use there own items example as med kit,jail Keys, brave potions , same for gym example will potions from 'userid' your allowed to equip 3 items gun or a knife and a vest , those items can also be upgraded 'vest' max level 3 for all the protection vest you create the higher the level can be for upgrading example 1-5 upgrade levels . This is just a short summary of my inventory idea Add a inventory item collection example certain items can only be hold at 100 -150 max . Upgrade bullets aswell strong the bullet stronger the attack or kills .
  17. The GL premium is free ?
  18. Thank dayo once I managed to get the remaining money from donations from my previous site , I will be buying this engine
  19. Hey I'm thinking of buying this engine if that's okay and I might need help on it ☺️ just for me to start understanding how it works .
  20. Well I think i found the bug .. that's causing the doubling issue . I think it's docrime.php there's a queries that is doubling. $db->query("UPDATE users SET money=money+{$r['crimeSUCCESSMUNY']}, crystals=crystals+{$r['crimeSUCCESSCRYS']}, exp=exp+$formula, crimexp=crimexp+{$r['crimeXP']}, crimes=crimes+1 WHERE userid=$userid"); I'm not sure if this is the error but I think it is ..
  21. Sim hasn't replied to me yet but he said he will check everything. Having a crazy issue with battle ladder <?php include __DIR__."/config.php"; global $_CONFIG; $code = null; if (isset($argv)) { parse_str($argv[1], $params); $code = $params['code']; } else { $code = array_key_exists('code', $_GET) && ctype_alnum($_GET['code']) ? $_GET['code'] : null; } if($code != $_CONFIG['code']) { exit; } define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; include "global_func.php"; $fetch = $db->query("SELECT * FROM `battle_ladders` ORDER BY `ladderLevel` ASC"); while($ft = $db->fetch_row($fetch)) { $count = 0; $sql = $db->query(sprintf("SELECT * FROM `battle_members` LEFT JOIN `users` ON `userid` = `bmemberUser` WHERE `bmemberLadder` = '%u' ORDER BY `bmemberScore` DESC LIMIT 10", $ft['ladderId'])); while($r = $db->fetch_row($sql)) { $count ++; $cash = ((((rand(50, 75) / 10) * $r['level']) / $count) * ($ft['ladderLevel'] + 1)); $points = ((((rand(1, 2) / 10) * $r['level']) / $count) * ($ft['ladderLevel'] + 1)); if($r['userid']) { $db->query(sprintf("UPDATE `users` SET `money` = `money` + '%d', `crystals` = `crystals` + '%d' WHERE `userid` = '%u'", $cash, $points, $r['bmemberUser'])); event_add($r['bmemberUser'], 'You have earned $'.number_format($cash).' and '.number_format($points).' Points for achieveing rank #'.$count.' in the '.$ft['ladderName'].' ladder!'); } } } $db->query("TRUNCATE TABLE battle_members;"); ?> This is my battle Cron and somehow it's awarding over 100million crystals.
  22. I've messaged you
  23. Willing to pay 40$ to whoever can fix all my bugs on my website !
  24. I've checked everything and this also includes crimes for brave. Exp,item use , levelling,buying items , everything really just goes up by 2 Also I only have the class mysqli when I went from v1 to V2 after changing all queries to $db-> I deleted the file of class keeping only class mysqli and I've checked every query's every CSS file and the issue still continues 😞
  25. I have the donation system from Dave, and I have daily rewards and a starter pack. And VIP gym training labour and rob skill ..
×
×
  • Create New...