Jump to content
MakeWebGames

Nutta

Members
  • Posts

    27
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Nutta

  1. Nutta

    Need Partner

    Obviously Nickson I expect it to take a good month to get it finished, and i'm looking at 50% 50%.
  2. Nutta

    Need Partner

    It's just a lot too do on your own, thats my main problem.
  3. Basically I didn't like the explorer idea, so I stuck all the hyperlinks into my mainmenu. Turns out my main menu isn't long enough Does anyone know how to extend my main menu.   Thanks in advance Heres my Header.php   <?php class headers { function startheaders() { global $ir, $set; echo <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="refresh" content="180"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$set['game_name']}</title> <style type="text/css"> <!-- body { background-color: #4c4a4a; background-image:url(images/backgroundnew.png); margin-top: 0px; margin-bottom: 0px; font-family: Verdana, Arial, Helvetica, sans-serif;font-size:12px;color: black; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: black;text-decoration: none; } table,tr,td { font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px; } img { border:none; } textarea { font-family: Verdana, Arial, Helvetica, sans-serif;font-size:12px;color: black; } .table2 { } .lgrad { background-image:url(lgrad.jpg); background-repeat:repeat-y; width:19px; } .linegrad { background-image:url(linegrad.PNG); background-repeat:repeat-y; background-align: center; width:2px; } .rgrad { background-image:url(rgrad.jpg); background-repeat:repeat-y; width:19px; } .dgrad { background-image:url(dgrad.jpg); background-repeat:repeat-x; height:38px; } .dgradl { background-image:url(dgradl.jpg); background-repeat:no-repeat; height:38px; width:38px; } .dgradr { background-image:url(dgradr.jpg); background-repeat:no-repeat; height:38px; width:38px; } .center { width:932px; background-color:#FFFFFF; vertical-align:top; text-align:center; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#CCCCCC; height:22px; } .table3 td { background-color:#000000; } td .alt { background-color:#EEEEEE; height:22px; } td .h { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: D6D6D6; } .table th { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } --> </style></head> <body> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="lgrad"></td> <td class="center"> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); if(!$ir['email']) { global $domain; die ("<body>Your account may be experiencing isues. Please email [email][email protected][/email] stating your username, player ID and the problem, Sorry for an inconvience."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You melted and lost all your EXP for running from the fight."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="<img src='donator.gif' alt='Donator: {$ir['donatordays']} Days Left' title='Donator: {$ir['donatordays']} Days Left' />"; } $gn=""; global $staffpage; $bgcolor = 'FFFFFF'; print <<<OUT <background-color: '#FFFFFF'> <img src="images/titlegangwars.png" alt="Gang-Wars" /><br /> <a href='education.php'><img src='images/button/college.png'></a><a href='criminal.php'><img src='images/button/crimes.png'></a> <a href='explore.php'><img src='images/button/explore.png'></a><a href='gym.php'><img src='images/button/gym.png'></a> <a href='job.php'><img src='images/button/work.png'></a> <!-- Begin Main Content --> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20%" bgcolor="#$bgcolor" valign="top"> <!-- Side Panel --> <img src='images/gangster_cartoon.png'><br /> <b>Name:</b>$gn{$u} [{$ir['userid']}] $d<br /> <b>My Profile:</b><a href='viewuser.php?u={$ir['userid']}'>My Profile</a><br /> <b>Money:</b> {$fm}<br /> <b>Level:</b> {$ir['level']}<br /> <b>Credits:</b> {$ir['crystals']}<br /> [<a href='logout.php'>Quick Logout</a>] <hr /> <b>Energy:</b> {$enperc}%<br /> <img src=greenbar.png width=$enperc height=10><img src=redbar.png width=$enopp height=10><br /> <b>Happiness:</b> {$wiperc}%<br /> <img src=bluebar.png width=$wiperc height=10><img src=redbar.png width=$wiopp height=10><br /> <b>Brave:</b> {$ir['brave']}/{$ir['maxbrave']}<br /> <img src=yellowbar.png width=$brperc height=10><img src=redbar.png width=$bropp height=10><br /> <b>EXP:</b> {$experc}%<br /> <img src=greenbar.png width=$experc height=10><img src=redbar.png width=$exopp height=10><br /> <b>Health:</b> {$hpperc}%<br /> <img src=greenbar.png width=$hpperc height=10><img src=redbar.png width=$hpopp height=10><br /> <!-- Links --> OUT; if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("<b><font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s).<br /> Reason: {$r['fed_reason']}</font></b></body></html>"); } if(file_exists('ipbans/'.$IP)) { die("<b><font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this if you think this is wrong please email [email][email protected][/email].</font></b></body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; $bgcolor = 'FFFFFF'; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"><br /><center>'; if($ir['hospital']) { print "<b>NB:</b> You are currently in hospital for {$ir['hospital']} minutes.<br />"; } if($ir['jail']) { print "<b>NB:</b> You are currently in jail for {$ir['jail']} minutes.<br />"; } print "<a href='donator.php'><b>Donate to {$set['game_name']} now for game benefits!</b></a><br />"; } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = 'FFFFFF'; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"><center>'; } function endpage() { global $db; print <<<OUT </center> </td> </tr> </table></td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="dgradl"> </td> <td class="dgrad"> </td> <td class="dgradr"> </td> </tr> </table> </td> </tr> </table> {$db->num_queries} queries</body> </html> OUT; } } ?>
  4. Nutta

    Banner Ad

    Looks nice apart from the font on the top left, the gradient doesn't go that well.
  5. Nutta

    Need Partner

    But people don't want different
  6. Nutta

    Need Partner

    This is why I need a partner because I don't have that much experience, i've played mafia games and all that, my last game we was about to launch then there was some issues so we scrapped it. But my partner on my old game, wanted to get everything but not give anything.
  7. Nutta

    Need Partner

    Me, apart from template would be one of the last things i get before it goes into a beta testing stage. You can find ways around paying for advertising but if needed i would.
  8. Nutta

    Need Partner

    nobody interested?
  9. John, that's nice but i need like a newspaper layout like the one on torn lol.
  10. rory name a price ;)
  11. you need to add you game id after. EG. curl http://blabla.x10.mx/cron_day.php?code=243254356475678589 your game id or whatever its called can be found in config.php
  12. Im looking to buy a newspaper mod, i want one just like torn city. Anyone got a script they can legally sell?
  13. Nutta

    Security

    In around 2 weeks i will need somebody to look over my code etc and edit security for me please. I will be paying. Email me at [email protected] please
  14. you still selling this?
  15. Nutta

    chat

    im getting this error... Warning: eregi() [function.eregi]: REG_BADRPT in /home/fragzyyx/public_html/chat.php on line 16
  16. Thanks diesl ill have to look into it :/
  17. I know i'm a noob for using a free template, just temporary ;) Anyway so when i try to register i get this error message If your not going to put a decent input in please don't bother. So basically my question is does anyone know the problem? Im pretty sure its to do with creating a mysql table, if it is does anyone know what i need to enter as I'm not the best at this coding lark ;) Thanks in advance Below is what happens when i submit the register form -------------------------------------------------------- Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/fragzyyx/public_html/register.php on line 66 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/fragzyyx/public_html/register.php on line 67 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/fragzyyx/public_html/register.php on line 78 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/fragzyyx/public_html/register.php on line 79 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/fragzyyx/public_html/register.php on line 87 Warning: mysql_insert_id(): supplied argument is not a valid MySQL-Link resource in /home/fragzyyx/public_html/register.php on line 88 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/fragzyyx/public_html/register.php on line 89   --------------------------------------------- Heres my code!   <?php /*----------------------------------------------------- -- # Created by wrx 1/26/2010 -- # This file is Creative Commons Attributions 2.5 license -- # Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). # Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same, similar or a compatible license. -- # Filename : register.php -----------------------------------------------------*/ session_start(); //require "global_func.php"; echo " <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> <title>GangWars</title> <link rel='stylesheet' type='text/css' href='style.css' /> </head> <body>"; $IP = $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$IP)) { echo("<b><font color=red size=+1>Your IP has been banned, there is no way around this.</font></b></body></html>"); exit; } echo" <div id='wrap'> <div id='header'> <h1><img src='images/titlenew.png'></h1> <div align='right'> <form action=authenticate.php method=post name=login id='sc'> <table width='400' border='0' cellspacing='10' cellpadding='10'> <tr><td colspan='4'> </td></tr> <tr><td> <img src='images/username.png'><input name='username' type='text' id='username' class='name'/></td> <td><img src='images/password.png'><input name='password' type='password' id='password' class='pass'/></td> <td align='center' valign='bottom'><input type='image' src='images/login.png' name='submit' id='submit' value='Login' class='submit'/></td> <td align='center' valign='bottom'> </td> </tr></table></form> </div> <ul id='nav'><b> <li class='first'><a href='login.php'>HOME</a></li> <li><a href='loginnews.php'>NEWS</a></li> <li><a href='contact.php'>CONTACT</a></li> <li><a href='register.php'>REGISTER</a></li></b> </ul> </div> <!-- /header --> <div id='content'> <div class='main fr'> <div class='mainin'> <td align='center'><h2>Gang Wars Registration</h2></td>"; ////////////////Registration////////////////// global $c; if($_POST['username']) { $sm=100; if($_POST['promo'] == "Your Promo Code Here") { $sm+=100; } $username=$_POST['username']; $username=str_replace(array("<", ">"), array("<", ">"), $username); $q=mysql_query("SELECT * FROM users WHERE username='{$username}'",$c); if(mysql_num_rows($q)) { print "Username already in use. Choose another."; } else if($_POST['password'] != $_POST['cpassword']) { print "The passwords did not match, go back and try again."; } else { $_POST['ref'] = abs((int) $_POST['ref']); $q=mysql_query("SELECT * FROM users WHERE lastip='$IP' AND userid={$_POST['ref']}",$c); if(mysql_num_rows($q)) { die("Registration Error"); } if($_POST['ref']) { $q=mysql_query("SELECT * FROM users WHERE userid={$_POST['ref']}",$c); $r=mysql_fetch_array($q); } mysql_query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, display_pic,searches) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, 'Male', unix_timestamp(), '{$_POST['email']}', -1, '$ip','images/id_template.jpg',100)", $c); $i=mysql_insert_id($c); mysql_query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)", $c); if($_POST['ref']) { mysql_query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}",$c); event_add($_POST['ref'],"For refering $username to the game, you have earnt 2 valuable crystals!",$c); mysql_query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$ip')", $c); } print "You have signed up, enjoy the game.<br> <a href='login.php'>Login</a>"; } } else { print "<form action=register.php method=post> <table border='0' width='100%'> <tr><td>Username: </td><td><input type=text name=username></td></tr> <tr><td>Password: </td><td><input type=password name=password></td></tr> <tr><td>Confirm Password: </td><td><input type=password name=cpassword></td></tr> <tr><td>Email: </td><td><input type=text name=email></td></tr> <tr><td>Terms: </td><td><a href='terms.php'>By Registering to Gang-Wars<p> you agree to the TOS!</a></td></tr> <input type=hidden name=ref value='"; if($_GET['REF']) { print $_GET['REF']; } print "'> <h2><b>Due to current registration issues please use old register format by clicking <a href='register2.php'>here</a></b><h2>. <tr><td align='center' colspan='2'><input type=submit value=Submit></td></tr></form></table>"; } ///////////////////End Registration////////////////////////// echo" </div> </div> <div class='side fl'> <div class='sinner'><center> <p><img src='images/screenshots.png'><img src='images/screenshots.png'><br /><img src='images/screenshots.png'><img src='images/screenshots.png'><br /></p> <br /></center></div> <div id='bg'> <center><a href='register.php'><img src='images/registergif.gif'></a></center> </div> </div> </div> <!-- /content --> <!-- /footer --> </div> <br /> </body> </html>"; ?>
  18. Nutta

    Need Partner

    1. I'm upgrading the server and domain this friday. 2. The only real risk is that the game never picks up. 3. If the game went down the pan then you could have my mccodes for free?
  19. Title: Gang-Wars Game abstract: Mafia based game set in the USA.   Technology used: McCodes v2 Current development status: I have installed the script and added quite a few mods and edited a lot of things around and started working on my own mods. My own skills and tasks in the game: I'm not the best coder, im more into editing codes to making them better rather than creating them from scratch. What I/we are looking for: Looking for someone to help code the website so it could take some workload off my back, they need to be pretty good tbh. Expenses will be covered by: I bought the script, im currently using a free hosting service but i will be upgrading this friday to a full hosting service and purchasing a domain. Current team: Only me working on the code, i have 1 tester and a moderator already, who are just playing the game as i go to find bugs etc. Share / gain of the partners: The share of the website will all come down to how much effort you are willing to put in, if you do A LOT of work im thinking 50/50 but if you can only help out occasionally it will be less. I won't be reading this thread again so please email or private message me. [email protected]. Thanks
  20. Nutta

    Cron Jobs

    This is now fixed, how comes you can't delete threads?
  21. Nutta

    Crime XP

    When creating a crime on the staff panel, is there a certain formula you need to put on crime xp or is it a basic number? Thanks for any help in advance If your just going to reply calling me a noob, do me a favour and go away.
  22. I deleted the new copy of crimes and uploaded the original i got with McCodes v2, could it be to do with my SQL?
  23. Its working now thanks for the help
  24. you still selling?
  25. are you still making them?
×
×
  • Create New...