Jump to content
MakeWebGames

modernmafia

Members
  • Posts

    188
  • Joined

  • Last visited

Everything posted by modernmafia

  1. Parse error: syntax error, unexpected '(' in /home/modernma/public_html/s2/_m_dice2.php on line 16 line 16 : $_POST['fee'] = preg_match()("[^0-9]",'',$_POST['fee']); think i put a bracket in the wrong place
  2. Error on my lotto page : Deprecated: Function ereg() is deprecated in /home/public_html/s2/s2/Lotto.php on line 70 Line 70 = if ($amount == 0 || !$amount || ereg('[^0-9]',$amount)){ multi dice error : Deprecated: Function ereg_replace() is deprecated in /home/public_html/s2/s2/_m_dice2.php on line 16 Deprecated: Function ereg_replace() is deprecated in /home/public_html/s2/s2/_m_dice2.php on line 18 line 16 :$_POST['fee'] = ereg_replace("[^0-9]",'',$_POST['fee']); line 18 :$_POST['autoroll'] = ereg_replace("[^0-9]",'',$_POST['autoroll']);
  3. was that cncorruption by any chance
  4. do yo make templates for people obviously not free
  5. alll fixed cheers
  6. i have some skills but i am new to this hence why im asking but thank you
  7. view profile 1 : http://pastebin.com/bVF6Pw4d view profile 2 : http://pastebin.com/GK2aVSju
  8. view profile 1 and 2 are too big to post here
  9. The problem,when you logout of the game it takes roughly 15 mins to update the online page im not sure if thats normal but some people i have spoke to says it fine, also that is like that with viewprofile i don know if its cause of my interval or what but ill post my problem files below also any suggestion on this problem and is it caused by the below files also when your not clicking on the game ( idle ) it takes you off the online page too ?   any help is appreciated and suggestion are welcome thanks for your time on looking :     players online : <? require("safe.php"); ?> <table width="90%" align="center" border="0"> <tr> <td valign="top" width="50%"> <table width='95%' border="1" align="center" cellpadding="0" cellspacing="1" bordercolor='#000000' bgcolor='#FFFFFF' class="table"> <tr> <td align="center" bordercolor="#000000" bgcolor='#133337' class='style2' colspan="2"><label>Players Online</label></td> </tr> <tr> <? $query = mysql_query("SELECT name,state,sitestate,power FROM login WHERE hide='0' AND DATE_SUB(NOW(),INTERVAL 30 MINUTE) <= lastactive OR alltime='1' ORDER BY power DESC, id ASC"); $count = mysql_num_rows($query); $counter = 0; echo '<tr><td width="10%" align="center" class="info_row" colspan="2">Total Users Online: '.$count.'</td></tr>'; echo "<td width='70%' align='left' bordercolor='#000000' bgcolor='#333333' class='style1' valign='top'>"; while($fetch = mysql_fetch_assoc($query)){ $class = "normal_online"; if($fetch['power'] == 4){ $class = "admin_online"; } if($fetch['power'] == 3){ $class = "mod_online"; } if($fetch['power'] == 2){ $class = "hdo_online"; } echo "<a href=\"home.php?pageid=900&studentname=".$fetch['name']."\"><span class = ".$class.">".$fetch['name']."</span></a>"; $counter++; if($counter != $count) { echo "<label> - </label>"; } } ?> </td> <td width="30%" align="left" class="style1" valign="top"> <font color="red"><b>Adminstrators</b></font><BR> <font color="green"><b>Moderators</b></font><BR> <font color="yellow"><b>Help Desk Operators</b></font><br><br> </tr> </table> </td> <td valign="top" width="50%"> <table width='95%' border="1" align="center" cellpadding="0" cellspacing="1" bordercolor='#000000' bgcolor='#FFFFFF' class="table"> <tr> <td align="center" bordercolor="#000000" bgcolor='#133337' class='style2' colspan="4"><label>Gang Domination</label></td> </tr> <tr> <td width="10%" align="left" class="info_row"> </td> <td width="50%" align="left" class="info_row"> Gang name</td> <td width="20%" align="left" class="info_row"> Online</td> <td width="20%" align="left" class="info_row"> %</td> </tr> <? // Get the total amount of online players with a gang $gang_query1 = mysql_query("SELECT id FROM login WHERE gang != '' AND DATE_SUB(NOW(),INTERVAL 30 MINUTE) <= lastactive"); $total_online = mysql_num_rows($gang_query1); $query = mysql_query("SELECT name,color,suspended FROM gangs ORDER by id ASC"); while($fetch = mysql_fetch_assoc($query)){ // Get the amount of players in this gang: $gang_query2 = mysql_query("SELECT id FROM login WHERE gang = '".$fetch['name']."' AND hide='0' AND DATE_SUB(NOW(),INTERVAL 15 MINUTE) <= lastactive"); $online = mysql_num_rows($gang_query2); // Calculate percent: $percent = (($online/$total_online)*100); // Check if the gang is suspended: $nametwo = ''; $suspended = $fetch['suspended']; if($suspended != 0){ $nametwo = '<i>(suspended)</i>'; } echo "<tr> <td width='10%' class = ".$fetch['color']."> </td> <td width='50%' bordercolor='#000000' bgcolor='#333333' class='style1'> <a href=\"home.php?pageid=901&gangname=".$fetch['name']."\"> ".$fetch['name']." ".$nametwo."</a> </td> <td width='20%' bordercolor='#000000' bgcolor='#333333' class='style1'> ".$online." </td> <td width='20%' bordercolor='#000000' bgcolor='#333333' class='style1'> ".round($percent,1)."% </td> </tr> "; } ?> <tr> <td align="center" bordercolor="#000000" bgcolor='#133337' class='style2' colspan="4"><label> </label></td> </tr> <tr> <td colspan="4" align="center" class="style1"><img src="onlineimg.php"></img></td> </tr> </table> </td> </tr> </table>
  10. good luck with it
  11. well my project is open now to view
  12. you free in the new for some payed work
  13. fixed now thanks lucky
  14. dayo i need your help
  15. ill give it a go
  16. i dont think i have a secure function as im new to coding but when updating a max bet it gives me this error Fatal error: Call to undefined function secure() in /home/modernma/public_html/chance.php on line 133   as i didnt have one for amount so i wont have one for maxbet what can put there
  17. any suggestion on line 133 = $maxbet=secure($_POST['maxbet']); when doing what lucky said i get erros on that line
  18. thanks you if you do get a chance to help / fix for me ill will pay you for the time kind regards Modernmafia
  19. no i have tryed to mate but as im a new coder i lack the knowledge of some one more experianced i am still learning but i need the help for now till i can run my own game without the help
  20. correct i have been asking for a month i need quotes and i dont mind paying just need offers of help so i can have the money ready and waiting
  21. :) bump my topic so i cam get help
  22. i have emailed you dayo
  23. REMOVED DOUBLE POST: illusions whats the error your getting
  24. cant seem to fix it on line 87 <?php require("safe.php"); ?> <? // Gaining User Information: $login=mysql_fetch_assoc(mysql_query("SELECT name,money,id,location FROM login WHERE name='".$name."'"))or die(mysql_error()); // Gaining Casino Information: $casino=mysql_fetch_assoc(mysql_query("SELECT * FROM casino_owner WHERE state='".$login['location']."' AND casino='1'"))or die(mysql_error()); if(isset($_GET['reset'])){ $reset=strip_tags(addslashes(htmlspecialchars($_GET['reset']))); if($reset == "yes"){ $result = mysql_query("UPDATE casino_owner SET profit='0' WHERE state='".mysql_real_escape_string($location)."'") or die(mysql_error()); echo 'Profit Reset!<br><br>'; }} // Check if owner is human: if($casino['owner'] == '0'){ if($_POST['pickup']){ if($money < 5000000){ echo "You don't have enough money to purchase this Casino."; }else{ mysql_query("UPDATE casino_owner SET owner='".$name."' WHERE state='".$casino['state']."' AND casino='1'")or die(mysql_error()); // remove cash $costs = $money - 5000000; $result = mysql_query("UPDATE login SET money='".mysql_real_escape_string($costs)."' WHERE name='".$name."'") or die(mysql_error()); 'You now own the casino!'; } } echo '<center><form action="home.php?pageid=768" method="POST"> <table width="250" border="1" align="center" cellspacing="1" class="table"> <tr> <td colspan="2" align="center" bgcolor="#133337" class="style2">Purchase Chance</td> </tr> <tr> <td width="75" bgcolor="#414141" class="style1">Price:</td> <td width="175" bgcolor="#414141" class="style1">$5,000,000</td> </tr> <tr> <td colspan="2" bgcolor="#414141" class="style1"><table width="100" border="0" align="right" cellspacing="0"> <tr> <td align="center"><input name="pickup" type="submit" class="button" id="Pickup" value="Purchase" /></td> </tr> </table></td> </tr> </table> </form></center>'; }else{ // Casino Owner Information $owner=mysql_fetch_assoc(mysql_query("SELECT name,money,id FROM login WHERE name='".$casino['owner']."'"))or die(mysql_error()); // Starting the Game: if($_POST['roll_1'] OR $_POST['roll_2']){ $result=rand(1,2); $amount=secure($_POST['amount']); if($login['money'] < $amount){ echo 'You don\'t have enough money.'; }elseif($amount < 100){ echo 'The minimum bet is $100.'; }elseif(empty($amount)){ echo 'Please fill in a bet.'; }elseif($amount > $casino['max']){ echo 'Your bet exceeds the casino\'s maxbet.'; }else{ if($_POST['roll_1']){ $chose='Heads'; $false='Tails'; }else{ $chose='Tails'; $false='Heads'; } switch($result){ case 1: if($owner['money'] < $amount){ echo 'The coin rolled '.$chose.'. You won but the owner went broke. You won the casino!.'; mysql_query("UPDATE casino_owner SET owner='".$name."' WHERE state='".$casino['state']."' AND casino='1'")or die(mysql_error()); }else{ echo 'The coin rolled '.$chose.'. You won <b>$'.number_format($amount*2).'</b>.'; $winnings = $amount * 0.90; mysql_query("UPDATE login SET money=money+$winnings WHERE id='".$login['id']."'")or die(mysql_error()); mysql_query("UPDATE login SET money=money-$amount WHERE id='".$owner['id']."'")or die(mysql_error()); mysql_query("UPDATE casino_owner SET profit=profit-$amount WHERE state='".$casino['state']."' AND casino='1'")or die(mysql_error()); } break; case 2: echo 'The coin rolled '.$false.'. You lost $'.number_format($amount).'.'; $winnings = $amount * 0.90; mysql_query("UPDATE login SET money=money-$amount WHERE id='".$login['id']."'")or die(mysql_error()); mysql_query("UPDATE login SET money=money+$winnings WHERE id='".$owner['id']."'")or die(mysql_error()); mysql_query("UPDATE casino_owner SET profit=profit+$winnings WHERE state='".$casino['state']."' AND casino='1'")or die(mysql_error()); break; default: echo 'Invalid Action.'; break; }}} if($_POST['update']){ if($login['name'] != $casino['owner']){ echo 'Access Denied'; }else{ $maxbet=secure($_POST['maxbet']); if($maxbet < 100){ echo 'Minimum maxbet is $100'; }else{ mysql_query("UPDATE casino_owner SET max=$maxbet WHERE state='".$casino['state']."' AND casino='1'")or die(mysql_error()); echo 'Maxbet updated'; }}} if($_POST['update2']){ if($login['name'] != $casino['owner']){ echo 'Access Denied.'; }else{ $sql = "SELECT name,sitestate FROM login WHERE name='".mysql_real_escape_string($_POST['owner'])."'"; $query = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_object($query); $owner_new = htmlspecialchars($row->name); $check_newowner=mysql_query("SELECT name,sitestate FROM login WHERE name='".$owner_new."'")or die(mysql_error()); $count_newowner=mysql_num_rows($check_newowner); if($count_newowner != 0){ $fetch_newowner=mysql_fetch_assoc($check_newowner); } if($count_newowner == 0){ echo 'No such player.'; }elseif($fetch_newowner['sitestate'] == 2){ echo 'This player is dead'; }else{ mysql_query("UPDATE casino_owner SET owner='".$owner_new."',max='100' WHERE state='".$casino['state']."' AND casino='1'")or die(mysql_error()); echo 'You sent your casino to <b>'.$owner_new.'</b>'; $casino['owner']=$owner_new; }}} // Showing the Betting Screen: if($login['name'] != $casino['owner']){ echo ' <form action="home.php?pageid=768" method="POST"> <table width="275" border="1" align="center" cellspacing="1" bordercolor="#000000" bgcolor="#FFFFFF" class="table"> <tr> <td colspan="4" align="center" bgcolor="#133337" class="style2"><label>Chance</label></td> </tr> <tr> <td align="center" class="style1">Bet:</td> <td align="center" class="style1"><input type="text" name="amount" class="entryfield" value="'.$_POST[amount].'"; " style="width: 70%;"></td> </tr> <tr> <td width="100%" colspan="2" align="center" class="style1"> <input name="roll_1" type="submit" class="button" value="Heads" style="width: 33%;"> <input name="roll_2" type="submit" class="button" value="Tails" style="width: 33%;"> </td> </tr> </table><BR> <center>This casino is owned by <a href=\home.php?pageid=900&studentname='. $casino['owner'] .'><b>'.$casino['owner'].'</b></a>.<BR> '; if (($casino['max']) >= 99999999999){ echo "This casino has no betting limit.</center>"; }else{ echo 'The maximum bet is limited to $<b>'.number_format($casino['max']).'</b>.</center>'; } echo ' </form> <center>The local authorities charge 10% tax on all winnings.</center> '; }else{ // Show Owner Interface: echo ' <form action="home.php?pageid=768" method="POST"> <table width="400" border="0" align="center" cellpadding="0" cellspacing="1" class="table"> <tr> <td colspan="2" align="left" class="info_row" style="background:url(/images/chance.jpg) #222222 no-repeat right bottom; height:120px;"></td> </tr> </table><br> <table width="400" border="0" align="center" cellpadding="0" cellspacing="1" class="table"> <tr> <td colspan="2" align="center" bgcolor="#133337" class="style2"><label>'; echo $loc." Chance Management"; echo'</label></td> </tr> <tr> <td align="left" class="style1">Profit:</td> <td align="left" class="style1">$'.number_format($casino['profit']).' <a href="home.php?pageid=768&reset=yes"><i>(Reset)</i></a></td> </tr> <tr> <td width="100" align="left" class="style1">Maximum Bet:</td> <td width="250" align="center" class="style1">';?> <input name="maxbet" type="text" class="entryfield" id="max_bet" style='width: 98%;' onkeyup="fancyWriting(this);" onfocus="if(this.value=='<? if (( $casino['max'] ) >= 99999999999){ echo "Unlimited."; }else{ echo '$'.number_format( $casino['max'] ).''; } ?>'){this.value=''}" onblur="if(this.value==''){this.value='<? if (( $casino['max'] ) >= 99999999999){ echo "Unlimited."; }else{ echo '$'.number_format( $casino['max'] ).''; } ?>'}" value="<? if (( $casino['max'] ) >= 99999999999){ echo "Unlimited."; }else{ echo '$'.number_format( $casino['max'] ).''; } ?>" maxlength="20" /></td> </tr> <? echo' <tr> <td align="center" colspan="2" class="style1"> <input name="update" type="submit" class="button" value="Update" style="width: 30%;"> </td> </tr> <tr> <td align="left" class="style1">New Owner:</td> <td align="left" class="style1"> <input type="text" name="owner" class="entryfield" style="width: 98%;"></td> </tr> <tr> <td align="center" colspan="2" class="style1"> <input name="update2" type="submit" class="button" value="Transfer" style="width: 30%;"> </td> </tr> </table></form> '; } } // If owner is human ?>
  25. still looking for some help with my game project 70% done just needs some help finishing it now i can provide demo what i know that needs doing online page : does not update when signing out verification on the forum : still allows you to post when you are not verified via email chance : wont allow me to set max/ min bet also can not bet or transfer on it sms donation : this is a maybe but i need some form of donation that automatically send points when bought new index : currently using a template that requires to seperate indexs ( index.php and index12.php ) dont have a buget   also can provide demo
×
×
  • Create New...