Jump to content
MakeWebGames

tom527103

Members
  • Posts

    40
  • Joined

  • Last visited

Everything posted by tom527103

  1. thanks guys
  2. QUERY ERROR: 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 'e+2,maxenergy=maxenergy+2,maxbrave=maxbrave+2, hp=hp+50,maxhp=maxhp+50 where us' at line 1 Query was UPDATE users SET level=level+1,exp=19,energy=energy+2,brave=brav e+2,maxenergy=maxenergy+2,maxbrave=maxbrave+2, hp=hp+50,maxhp=maxhp+50 where userid=1 i need the sql for the original leveling up system and where to put it as i f**ked up hardd with dayos new leveling system can anyone help me out asap   ^^^^^^^^^ IGNORE ME BEING A RETARD LOL
  3. how would i round down so instead of it coming up like 1.3723 it would just be 1
  4. i really need a bank that gives normal member 2% interest and gives donators 4% interest anyone want to hook me up ?
  5. best thing to do is use your brain and fix it lol u must know php otherwise u wouldn't of bought it
  6. just wanted to share this php tutorial that will help any beginner this has helped me alot and i hope it can do the same for others its simple to understand hope this helps to any aspiring php programmers PHP 101: PHP For the Absolute Beginner ;)
  7. the images on the template are illegal as they are stolen and u they remain property of mafia corruption :| another reason why ravan scripts is illegal :| heads up :)
  8. yes its creating the txt file and writing to it but on the page croom.php it is not printing the chatbox, if i go to chats.php the chat box is present with the contents of the txt file i just cant seem to put them together, lmao i did try using preg_match still same result chat page with submit button textbox saying chatroom but no chatbox haha giving me a migraine :P any other ideas ? :)
  9. ?? my exp wont let me change level now it just keeps going up and cant get high in lvl ???
  10. i think its something to do with print "<iframe frameborder='0' src='chats.php' width='100%' height='60%'> its not printing the contents of chats.php
  11. right ive just put up a chat room the it writes to the log the text shows up when i got to chats.php but when i type in anything in the text box u cannot see it on the page its ment to be i dont know whats going on but heres my codes chats.php <?php print "<meta http-equiv='refresh' content='3; url=croom.php'> <body bgcolor='#333'><center> <font face='verdana' size='2' color='gold'>"; if(file_exists("cbox.txt")) { $f=file_get_contents("cbox.txt"); $f=strip_tags($f); $f=str_replace("/n", "<br />", $f); } else { $f="Chat isn't configured right. Remember to CHMOD the file chatbox.txt to 777. Thanks."; } print $f; ?> </font></center></body> croom.php <?php include "globals.php"; $name=$ir['username']." [$userid] : "; //The name of the user print "<center> <h3>Chatroom</h3>"; if($_REQUEST['message']) { $_GET['message'] = $_REQUEST['message']; $mess = array("gay","****","poo","game","sign up", "porn", "nob","cock","dick"); $found = 0; //amount of dirty words found foreach($mess as $val) { if(eregi($val, $_GET['message'])) { $found ++; } else { } //filterd done $words = array("%","^","&","*","!","?","#","@"); $rand = false; foreach($words as $w) { if(strlen($rand) < 5) { $rand .= $w; } } $_GET['message'] = str_replace($val, $rand, $_GET['message']); } $newtotal = $name; $newtotal .= $_GET['message']; $newtotal .= "/n"; if(strlen(file_get_contents("cbox.txt")) <= 3000) { $f = @file_get_contents("cbox.txt"); } $newtotal .= $f; $f = fopen("cbox.txt", "w"); fwrite($f, $newtotal); fclose($f); } print "<iframe frameborder='0' src='chats.php' width='100%' height='60%'> </iframe><br /> <div id='do_a'></div><br /> <form name='newmessage' action='croom.php' method='post' onsubmit='checkbad()'> Message: <input type='text' name='message' value='' size='30' maxlength='30'><br /> <input type='submit' id='mess' value='Add your message'> </form> </center>"; $h->endpage(); ?>   anyone could tell me what im doing wrong lol would be much appreciated
  12. Parse error: syntax error, unexpected T_STRING in /home/*****/public_html/starterkit.php on line 51 soz for being such a noob guys anyone help me out lol ?   <?php /*----------------------------------------------------- -- Made by Akash for CE users -- Free Gift -- Mail <a href="mailto:[email protected]">[email protected]</a> if you need help or converting -----------------------------------------------------*/ if (file_exists('globals.php')) { require('globals.php'); } else { session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.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']); $h->userdata($ir,$lv,$fm); $h->menuarea(); } if ($ir['donatorpack']== 0) { print "Welcome to your game name, we hope you enjoy your stay and here is a complimentary pack from us to get you started."; //This is the writing they will get after clicking on the button in explore.php $sql = sprintf(" UPDATE `users` SET `money` = `money` + '%d', `crystals` = `crystals` + '%d', `donatordays` = `donatordays` + '%d', `vip` = `vip` + '%d', `donatorpack` = '%d' WHERE (`userid` = %u)", 10000, 100, 5, 5, 1, $userid); mysql_query($sql); //Edit any of these to credit whatever you want e.g. instead of points, it may be <span class="highlight">crystals</span>. Please DO NOT change the donatorpack=1 as this is part of the mod. <span class="highlight">Changing</span> it may result in users claiming more than one pack. $itmid = 1; //This is the item ID, whatever item you want it to add, just type in the ID here. If you want a random item then replace $itmid = 1; with itmid=rand(1,100), with the numbers being whatever you want. mysql_query("INSERT INTO inventory VALUES('',$itmid,$userid,1)",$c); print" "; //You do not need to change anything here, unless you want more than one of the item to be given. In this case, just edit the 1 at the end to the quantity. event_add($userid,"You were given a complimentary starter kit to begin you off. We hope you enjoy your stay at {$set['game_name']} and please mail <a href="http://viewuser.php?u=1" target="_blank"><b><font color=red>owner of the game</b></font></a> for any help you need.",$c); //This is the event they will receive once they have been credited. Edit the Owner Name to the owner's name and if needed, the writing in the event. } else { die("You have already claimed your starter kit!"); //This simply ensures that the user does not claim more than one pack. } $h->endpage();
  13. hi hi thanks for that im semi sorted but now im getting Parse error: syntax error, unexpected '<' in /home/******/public_html/5050.php on line 46 could u tell me where im going wrong lol soo confused im a noob at php still learning   <?php include "globals.php"; $_POST['bet'] =abs((int) $_POST['bet']); $_POST['type'] =abs((int) $_POST['type']); if($_POST['bet'] && $_POST['type']) { if($_POST['type'] == '1') { $type="crystals"; $limit=1000; $sym="/$"; $numty=number_format($_POST['bet']); } else { $type="money"; $limit=1000000; $sym=""; $numty=$_POST['bet']; } if($_POST['bet'] > $limit) { echo "Invalid Command. Your trying to bet over the limit. ><a href='/5050.php' target='_blank'>Back</a>; $h->endpage(); exit; } $chance=rand(1,2); if($chance == '1') { $blah=rand(10,20); $earn='{$type}/{$blah}'; $earnn=number_format($earn); echo '<font color=green size=1.2><b>You Won! You won {$sym}{$earnn} {$type} Congratulations.</b></font>'; $db->query('UPDATE users SET {$type}={$type}+{$earn} WHERE userid=$userid'); } else if($chance == '2') { echo '<font color=red size=1.2><b>You Lost! You lost {$sym}{$numty} {$type} bad luck.</b></font>'; $db->query('UPDATE users SET {$type}={$type}-{$_POST['bet']} WHERE userid=$userid'); } echo " ><a href='/5050.php' target='_blank'>Try Again</a>'; } else { echo " <form action='{$_SERVER['PHP_SELF']}' action='post'> How much would you like to bet? <input type='text' name='bet' value='0'> <span class="highlight">Crystals</span>: <input type='radio' name='type' value='1'> OR Money: <input type='radio' name='type' value='2'> <input type='submit' value='Bet!'> </form> "; } $h->endpage();
  14. Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/*****/public_html/5050.php on line 25 line 25 is   ><a href="http://{$_SERVER[" target="_blank">Back</a>"; any help would be much appreciated thanks
×
×
  • Create New...