Jump to content
MakeWebGames

Danny696

Members
  • Posts

    2,632
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Danny696

  1. i edited karlos's crystal temple but it dont work and he dont offer support here is the erre and here is the code i need help i edited this for a game but the thing is it wont wokr the error is the code is <?php include_once (DIRNAME(__FILE__) . '/globals.php'); ### Start Configuration ### $BraveRefill = '10'; $PowerRefill = '10'; $Buy10steps = '10'; $Sell10steps = '10'; $Money = '1000'; ### End Configuration ### function Error($Message) { global $h; echo sprintf("<span style='color: #FF0000;'>Error! %s</span>", stripslashes($Message)); exit($h->endpage()); } $_GET['spend'] = isset($_GET['spend']) && ctype_alpha($_GET['spend']) ? trim($_GET['spend']) : FALSE; if (!in_array($_GET['spend'], array('', 'BraveR', 'PowerR', 'Buy10s', 'Sell10s', 'Money'))) { Error('Invalid Command!'); } if (!$_GET['spend']) { echo '<span style="text-decoration: underline; font-size: 14px; font-weight: 600">Welcome To The Crystal Temple!</span> '; echo sprintf("You have [b]%s[/b] crystals. ", number_format($ir['crystals'])); echo 'What would you like to spend your crystals on? '; echo sprintf(" [url='ctemple.php?spend=BraveR'] BraveRefill - %s Crystals[/url] ", number_format($BraveRefill)); echo sprintf("[url='ctemple.php?spend=PowerR']Power Refill - %s Crystals[/url] ", number_format($PowerRefill)); echo sprintf("[url='ctemple.php?spend=Buy10s']Buy 10 Steps - %s Crystals[/url] ", number_format($Buy10steps)); echo sprintf("[url='ctemple.php?spend=Sell10s']Sell 10 Steps - %s Crystals[/url] ", number_format($Sell10steps)); echo sprintf("[url='ctemple.php?spend=Money']Money - $%s Per Crystal [/url] ", number_format($Money)); } else { if ($_GET['spend'] == 'BraveR') { if ($ir['crystals'] < $BraveRefill) { Error('You Don\'t Have Enough Crystals!'); } else if ($ir['brave'] == $ir['maxbrave']) { Error('You Already Have Full Brave.'); } else { $db->query(sprintf("UPDATE users SET brave=maxbrave, crystals=crystals-%d WHERE userid=%d", $BraveRefill, $userid)); echo sprintf("You Have Paid %d Crystals To Refill Your Brave Bar.", number_format($BraveRefill)); } } else if ($_GET['spend'] == 'PowerR') { if ($ir['crystals'] < $PowerRefill) { Error('You Don\'t Have Enough Crystals!'); } else if ($ir['will'] == $ir['maxwill']) { Error('You Already Have Full Power.'); } else { $db->query(sprintf("UPDATE users SET will=maxwill, crystals=crystals-%d WHERE userid=%d", $PowerRefill, $userid)); echo sprintf("You Have Paid %d Crystals To Refill Your Power Bar.", number_format($PowerRefill)); } } else if ($_GET['spend'] == 'Buy10s') { if ($ir['crystals'] < $Buy10steps) { Error('You Don\'t Have Enough Crystals!'); } } else { $db->query(sprintf("UPDATE users SET turns=turns+10, crystals=crystals-%d WHERE userid=%d", $Buy10steps, $userid)); echo sprintf("You Have Paid %d crystals to get 10 steps at scavanging.", number_format($Buy10steps)); } } else if ($_GET['spend'] == 'Sell10s') { if ($ir['crystals'] < $Sell10steps) { Error('You Don\'t Have Enough Crystals!'); } } else { $db->query(sprintf("UPDATE users SET turns=turns-10, crystals=crystals+%d WHERE userid=%d", $Sell10steps, $userid)); echo sprintf("You Have Sold 10 Steps For %d Crystals .", number_format($Sell10steps)); } } else if($_GET['spend'] == 'money') { print "Type in the amount of crystals you want to swap for money. You have [b]{$ir['crystals']}[/b] crystals. One crystal = \$". number_format($Money).".<form action='ctemple.php?spend=Money2' method='post'><input type='text' name='crystals' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'money2') { $_POST['crystals']=(int) $_POST['crystals']; if($_POST['crystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { print "Error, you either do not have enough crystals or did not fill out the form. [url='ctemple.php?spend=Money']Back[/url]"; } else { $gain=$_POST['crystals']* $Money; $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']},money=money+$gain WHERE userid=$userid"); print "You traded {$_POST['crystals']} crystals for \$".number_format($gain)."."; $h->endpage(); ?>
  2. Re: [mccode v2] Crystal Temple ok ty karlos
  3. Re: [mccode] Diamond gems, with a Diamondtemple.php for v2.0 a recode your calling this a recode FAIL
  4. Re: [mccode v2] Crystal Temple i need help i edited this for a game but the thing is it wont wokr the error is the code is <?php include_once (DIRNAME(__FILE__) . '/globals.php'); ### Start Configuration ### $BraveRefill = '10'; $PowerRefill = '10'; $Buy10steps = '10'; $Sell10steps = '10'; $Money = '1000'; ### End Configuration ### function Error($Message) { global $h; echo sprintf("<span style='color: #FF0000;'>Error! %s</span>", stripslashes($Message)); exit($h->endpage()); } $_GET['spend'] = isset($_GET['spend']) && ctype_alpha($_GET['spend']) ? trim($_GET['spend']) : FALSE; if (!in_array($_GET['spend'], array('', 'BraveR', 'PowerR', 'Buy10s', 'Sell10s', 'Money'))) { Error('Invalid Command!'); } if (!$_GET['spend']) { echo '<span style="text-decoration: underline; font-size: 14px; font-weight: 600">Welcome To The Crystal Temple!</span> '; echo sprintf("You have [b]%s[/b] crystals. ", number_format($ir['crystals'])); echo 'What would you like to spend your crystals on? '; echo sprintf(" [url='ctemple.php?spend=BraveR'] BraveRefill - %s Crystals[/url] ", number_format($BraveRefill)); echo sprintf("[url='ctemple.php?spend=PowerR']Power Refill - %s Crystals[/url] ", number_format($PowerRefill)); echo sprintf("[url='ctemple.php?spend=Buy10s']Buy 10 Steps - %s Crystals[/url] ", number_format($Buy10steps)); echo sprintf("[url='ctemple.php?spend=Sell10s']Sell 10 Steps - %s Crystals[/url] ", number_format($Sell10steps)); echo sprintf("[url='ctemple.php?spend=Money']Money - $%s Per Crystal [/url] ", number_format($Money)); } else { if ($_GET['spend'] == 'BraveR') { if ($ir['crystals'] < $BraveRefill) { Error('You Don\'t Have Enough Crystals!'); } else if ($ir['brave'] == $ir['maxbrave']) { Error('You Already Have Full Brave.'); } else { $db->query(sprintf("UPDATE users SET brave=maxbrave, crystals=crystals-%d WHERE userid=%d", $BraveRefill, $userid)); echo sprintf("You Have Paid %d Crystals To Refill Your Brave Bar.", number_format($BraveRefill)); } } else if ($_GET['spend'] == 'PowerR') { if ($ir['crystals'] < $PowerRefill) { Error('You Don\'t Have Enough Crystals!'); } else if ($ir['will'] == $ir['maxwill']) { Error('You Already Have Full Power.'); } else { $db->query(sprintf("UPDATE users SET will=maxwill, crystals=crystals-%d WHERE userid=%d", $PowerRefill, $userid)); echo sprintf("You Have Paid %d Crystals To Refill Your Power Bar.", number_format($PowerRefill)); } } else if ($_GET['spend'] == 'Buy10s') { if ($ir['crystals'] < $Buy10steps) { Error('You Don\'t Have Enough Crystals!'); } } else { $db->query(sprintf("UPDATE users SET turns=turns+10, crystals=crystals-%d WHERE userid=%d", $Buy10steps, $userid)); echo sprintf("You Have Paid %d crystals to get 10 steps at scavanging.", number_format($Buy10steps)); } } else if ($_GET['spend'] == 'Sell10s') { if ($ir['crystals'] < $Sell10steps) { Error('You Don\'t Have Enough Crystals!'); } } else { $db->query(sprintf("UPDATE users SET turns=turns-10, crystals=crystals+%d WHERE userid=%d", $Sell10steps, $userid)); echo sprintf("You Have Sold 10 Steps For %d Crystals .", number_format($Sell10steps)); } } else if($_GET['spend'] == 'money') { print "Type in the amount of crystals you want to swap for money. You have [b]{$ir['crystals']}[/b] crystals. One crystal = \$". number_format($Money).".<form action='ctemple.php?spend=Money2' method='post'><input type='text' name='crystals' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'money2') { $_POST['crystals']=(int) $_POST['crystals']; if($_POST['crystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { print "Error, you either do not have enough crystals or did not fill out the form. [url='ctemple.php?spend=Money']Back[/url]"; } else { $gain=$_POST['crystals']* $Money; $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']},money=money+$gain WHERE userid=$userid"); print "You traded {$_POST['crystals']} crystals for \$".number_format($gain)."."; $h->endpage(); ?>
  5. Re: [mccode v2] Staff Applications! sorry to bring up an old topic but if u wanna get the mail to go from Mail (0) to Mail (1) add $db->query("UPDATE users SET new_mail=new_mail+1 WHERE userid=$userid",$c); on the line after where it sends out the mail
  6. Re: Bank Layout V2 done used it on my website nice mod there mate
  7. Re: [MCCODES V1 +V2] So who's viewing your profile     i did everything and it doent show who is accutally viewing the profile
  8. Re: [V2] New Small Accuracy Mod [V2] heres the whole index.php:   <?php $housequery=1; include "globals.php"; print "<h3>General Info:</h2>"; if($ir['totalhits'] > 0 AND $ir['totalmisses'] > 0) { $acc= $ir['totalhits'] / ($ir['totalhits']+$ir['totalmisses']) *100 } else { $acc=100; } $exp=(int)($ir['exp']/$ir['exp_needed']*100); print "<table><tr><td>[b]Name:[/b] {$ir['username']}</td><td>[b]Crystals:[/b] {$cm}</td></tr><tr> <td>[b]Level:[/b] {$ir['level']}</td> <td>[b]Exp:[/b] {$exp}%</td></tr><tr> <td>[b]Money:[/b] $fm</td> <td>[b]HP:[/b] {$ir['hp']}/{$ir['maxhp']}</td><tr> <td>[b][url='yourattacks.php']Last 50 Attacks[/url] <td>[b]<a href='iqgym.php'>Libary </tr> [img=line3.gif] [b]Your Accuracy[/b] $acc [b]<font color='green'>Total Hits:[/b]</font> {$ir['totalhits']} [b]<font color='red'>Total Misses:[/b]</font> {$ir['totalmisses']} </table> [img=line3.gif] <h3>Stats Info:</h3>"; $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); $busts; print "<table><tr><td>[b]Strength:[/b] {$ir['strength']} [Ranked: {$ir['strank']}]</td><td>[b]Agility:[/b] {$ir['agility']} [Ranked: {$ir['agirank']}]</td></tr> <tr><td>[b]Guard:[/b] {$ir['guard']} [Ranked: {$ir['guarank']}]</td><td>[b]Labour:[/b] {$ir['labour']} [Ranked: {$ir['labrank']}]</td></tr> <tr><td>[b]IQ: [/b] {$ir['IQ']} [Ranked: {$ir['IQrank']}]</td><td>[b]Total stats:[/b] {$ts} [Ranked: $tsrank]</td></tr></table>"; if(isset($_POST['pn_update'])) { $db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid"); $ir['user_notepad']=stripslashes($_POST['pn_update']); print " [img=line3.gif] [b]Personal Notepad Updated![/b]"; } print " [img=line3.gif] Your Personal Notepad:<form action='index.php' method='post'> <textarea rows='10' cols='50' name='pn_update'>".htmlspecialchars($ir['user_notepad'])."</textarea> <input type='submit' value='Update Notes' /></form>"; $h->endpage(); ?>
  9. Re: [V2] New Small Accuracy Mod [V2]   $acc= $ir['totalhits'] / ($ir['totalhits']+$ir['totalmisses']) *100   i got an error off: Parse error: syntax error, unexpected '}' in /home/darkstr1/public_html/index.php on line 8
  10. Re: 3 Word Game rabies, aids and
  11. Re: 3 Word Game bummed and shaged
  12. Re: [V2] New Small Accuracy Mod [V2] the accuracy bar dont work and he 2nd formula dont work
  13. Re: THIS OR THAT? Master php Computer or laptop?
  14. Re: 3 Word Game more sex and
  15. Re: [V1] V1 Help Please well ur an hounest person +1 for that :-D
  16. Re: [V1] V1 Help Please   You shouldnt reli say that :-P
  17. Re: [V2] New Small Accuracy Mod [V2] it woked thanks: Your Accuracy 330.769230769 thats good
  18. Re: [mccode v1] News Latter V2   <?php include "globals.php"; if($userid != 1) { die("You are not the owner therefore you cannot view this page."); exit; } if($_POST['message']) { $_POST['message']=$_POST['message']; if($_POST['category']==1) $q=$db->query("SELECT * FROM users"); else if($_POST['category']==2) $q=$db->query("SELECT * FROM users WHERE user_level > 1"); else if($_POST['category']==3) $q=$db->query("SELECT * FROM users WHERE user_level=2"); else $q=$db->query("SELECT * FROM users WHERE user_level={$_POST['level']}"); while($r=$db->fetch_row($q)) { $to=$r['email']; $subj = "Dark Streets Newsletter"; $headers ="From: [email][email protected][/email]"; $mess =$_POST['message']; mail($to,$subj,$mess,$headers); } print "<h3>Newsletter Sent!</h3>The Newsletter was successfully sent to ".$db->num_rows($q)." users. [url='newsletter.php'][i]<u>Go Back[/i]</u>[/url] or [url='index.php'][i]<u>Go Home[/i]</u>[/url]"; } else { print "<h3>E-mail A Newsletter</h3>[i]Here you can email a newsletter to all of your users.[/i] <form action='newsletter.php' method='post'> <textarea cols=100 rows=25 name='message'> </textarea> <input type='radio' name='category' value='1' /> Send To All Members <input type='radio' name='category' value='2' /> Send To Staff Only <input type='radio' name='category' value='3' /> Send To Admins Only [b][i] OR Send to a specific group:[/b][/i] <input type='radio' name='level' value='1' /> Member <input type='radio' name='level' value='2' /> Admin <input type='radio' name='level' value='3' /> Secretary <input type='radio' name='level' value='5' /> Assistant <input type='submit' value='Send' /></form>"; } $h->endpage(); ?>
  19. Re: [V2] New Small Accuracy Mod [V2] i have a problem ive done everything you have sead but it wont work Parse error: syntax error, unexpected '<' in /home/darkstr1/public_html/index2.php on line 17   heres index2.php: <?php $housequery=1; include "globals.php"; print "<h3>General Info:</h2>"; $acc=($ir['totalhits'])/($ir['totalmisses'])*100; $exp=(int)($ir['exp']/$ir['exp_needed']*100); print "<table><tr><td>[b]Name:[/b] {$ir['username']}</td><td>[b]Crystals:[/b] {$cm}</td></tr><tr> <td>[b]Level:[/b] {$ir['level']}</td> <td>[b]Exp:[/b] {$exp}%</td></tr><tr> <td>[b]Money:[/b] $fm</td> <td>[b]HP:[/b] {$ir['hp']}/{$ir['maxhp']}</td><tr> <td>[b][url='yourattacks.php']Last 50 Attacks[/url] </tr> <hr width=20%> [b]Your Accuracy[/b] $acc [b]<font color='green'>Total Hits:[/b]</font> {$ir['totalhits']} [b]<font color='red'>Total Misses:[/b]</font> {$ir['totalmisses']} "; </table>"; print "<hr><h3>Stats Info:</h3>"; $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); $busts; print "<table><tr><td>[b]Strength:[/b] {$ir['strength']} [Ranked: {$ir['strank']}]</td><td>[b]Agility:[/b] {$ir['agility']} [Ranked: {$ir['agirank']}]</td></tr> <tr><td>[b]Guard:[/b] {$ir['guard']} [Ranked: {$ir['guarank']}]</td><td>[b]Labour:[/b] {$ir['labour']} [Ranked: {$ir['labrank']}]</td></tr> <tr><td>[b]IQ: [/b] {$ir['IQ']} [Ranked: {$ir['IQrank']}]</td><td>[b]Total stats:[/b] {$ts} [Ranked: $tsrank]</td></tr></table>"; if(isset($_POST['pn_update'])) { $db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid"); $ir['user_notepad']=stripslashes($_POST['pn_update']); print "<hr>[b]Personal Notepad Updated![/b]"; } print "<hr>Your Personal Notepad:<form action='index.php' method='post'> <textarea rows='10' cols='50' name='pn_update'>".htmlspecialchars($ir['user_notepad'])."</textarea> <input type='submit' value='Update Notes' /></form>"; $h->endpage(); ?>
  20. Re: [mccode v2] Tag Mod (Complete) nope still dont work MySQL said: Documentation #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(`tmID`) ) ENGINE=MyISAM' at line 6
  21. Re: [mccode v2] Item needed to perform crime. i love this idea keep it up
  22. Re: Ruby Trader Mod FREE!!! V2 in 100 days they would get a dp pack people wouldnt donate then :-(
  23. Re: [Mc Codes V2] My Search Streets so its just mining but with streets i would rather the ordanary streets but +1 for the effort and good coding
  24. Re: [mccode v2] Tag Mod (Complete) i need two SQL's the tag market and the one he didnt attempt
  25. Re: Help With Header   isn't it allready there?
×
×
  • Create New...