-
Posts
2,685 -
Joined
-
Last visited
-
Days Won
81
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
NEVER compare your game against one thats already been done the reason TORN was a success is because it had originallity this is why so many games on here fail cos they always try to make them like something thats already been done
-
regards your first problem eregi() depreciated means no longer used so you need to change it to preg_match() Look at the following Query was 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, lastip_signup) VALUES( 'Resistant', 'Resistant', md5(''), 1, 100, 0, 0, 2, 12, 12, 100, 100, 5, 5, 100, 100, 1, '', unix_timestamp(), '[email protected]', -1, '2.125.46.146', '2.125.46.146') now lets strip it username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup so thats 23 INSERTS now count the Values which are 23 also 'Resistant', 'Resistant', md5(''), 1, 100, 0, 0, 2, 12, 12, 100, 100, 5, 5, 100, 100, 1, '', unix_timestamp(), '[email protected]', -1, '2.125.46.146', '2.125.46.146' so from what im seeing your password nor gender are being inserted (unless you removed your pass before posting on here) your half way now to solving this problem, however if your trying to do this over an exsisting SQL on your phpmyadmin you may encounter errors so just for now create a new MYSQL dbase and see if a clean install will work if not then the problem lies in your INSERTS...
-
tom what error are you getting when uploading
-
Ive been using Avast for a fair few years now cant say ive had any problems with the free version supports a quiet mode for gaming so unlike others once gaming mode is on it wont update until youve finished playing your game example battlefield 3. Although as i say ive never encountered problems this may not be the case for others that have used it as everyone oppinion is different..
-
Spud.. not sure if your having same issue with me with Internet explorer but do you find when copying and pasting from any website even non forum types the text is all 1 line... compared to lets say about 20 that you copied
-
And guess who would need to be #1 to stay alive (answers on a postcard) :)
-
you deserve a lolly pop :)
-
Colster keep posting on the site and helping people out with coding or other issues and gain some rep from people within the forums and you may one day see your wishes full filled but at the moment asking for a staff position with 1 post isnt going to do you justice :)
-
then i guess hes talking out of his arse :)
-
I didnt understand a word of that can you take a deep breath and try explaining that again.. Thanks
-
try <?php class headers { function startheaders() { global $ir, $set; echo <<<EOF <html> <head> <style type="text/css"> body { background-color:#7F0172; font-family:Segoe Script; } #wrapper { width:900px; margin-right:auto; margin-left:auto; } #head { background-image:url("ingameimages/banner.png"); background-repeat:no-repeat; width:900px; height:130px; } #left { float:left; height:700px; width:130px; background-color:#f11ff4; border-right:solid 5px #000; } #right{ float:right; height:700px; width:130px; background-color:#f11ff4; border-left:solid 5px #000; } #content { height:700px; width:900px; background-color:#f11ff4; } #footer { clear:both; background-image:url("ingameimages/footer.png"); background-repeat:no-repeat; width:900px; height:130px; } </style> </head> <body> <div id="wrapper"> <div id="head"></div> <div id="left"> EOF; } } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = $db->escape($_SERVER['REMOTE_ADDR']); $db->query("UPDATE `users` SET `laston` = ".$_SERVER['REQUEST_TIME'].",`lastip` = '$IP' WHERE `userid` = $userid"); if(!$ir['email']) { global $domain; die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { echo "You 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; echo" <b>Name:</b> $gn{$u} [{$ir['userid']}] $d<br /> <b>Money:</b> {$fm}<br /> <b>Level:</b> {$ir['level']}<br /> <b>Crystals:</b> {$ir['crystals']}<br />"; function menuarea() { define('jdsf45tji', true, true); include 'mainmenu.php'; global $ir,$c; } function smenuarea() { define('jdsf45tji', true, true); include 'smenu.php'; global $ir,$c; } echo" </div> <div id=\"right\">"; echo" <b>Energy:</b> {$enperc}%<br /> <img src=greenbar.png width=$enperc height=10><img src=redbar.png width=$enopp height=10><br /> <b>Will:</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=navybar.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 />"; echo" </div> <div id=\"content\"> </div> <div id=\"footer\"></div> </div> </body> </html>"; function endpage() { global $db; } ?>
-
lmfbo sorry have to post this one lol http://redux.mccodes.com:80 Possible exploit detected
-
http://www.wizwych.com No exploit detected
-
Excellent programme Nick lyndhurst does this justice ;)
-
MCC have a large task on their hands to make V3 as usable as V2. In my eyes V2 set the standards even with its exploit issues so V3 needs to be worth 2 V2's to pull this off
-
Im more engrossed in Alains new engine has a lot going for it :)
-
[MCCODES V2] Fully Customise your game layout
Uridium replied to Uridium's topic in Free Modifications
Tysoon go therough the script and any bbocde mentiones take them out of all the scripts and add the relevant url system IE <a href=" -
Actually this made more sense than some of the usual posts and they used keyboards ;) lol
-
[MCCODES V2] Fully Customise your game layout
Uridium replied to Uridium's topic in Free Modifications
The reason you were getting these errors is due to how the forums display links on older posts so for example all the links would have been displayed like [*url=gamelayout.php?action=layout]Back[*/url] added the * so you can see how it has changed in the script all you need to do is recode to make then <a href statements -
[MCCODES V2] Fully Customise your game layout
Uridium replied to Uridium's topic in Free Modifications
gamelayout.php Updated <?php include "sglobals.php"; //This contains data for game layout option switch($_GET['action']) { case 'layout': gamelayout(); break; default: index(); break; } function gamelayout() { global $db,$ir,$c,$h,$userid,$set; if($ir['user_level'] != 2) { die("<h1>Access Denied</h1>"); } if($_POST['submit']) { unset($_POST['submit']); foreach($_POST as $k => $v) { $db->query("UPDATE `settings` SET conf_value='$v' WHERE conf_name='$k'"); } print "Layout updated! <a href='?action=layout'>Back</a>"; stafflog_add("Updated the Game Layout Settings"); } else { print "<h3>Game Layout Settings</h3><hr /> <form action='?action=layout' method='post'> <input type='hidden' name='submit' value='1' /> Header Image: <input type='text' name='header_image' value='{$set['header_image']}' /> Center Panel Width: <input type='text' name='centerpane_width' value='{$set['centerpane_width']}' /> Center Panel Colour: <input type='text' name='centerpane_colour' value='{$set['centerpane_colour']}' /><a href='colours.html'> Colour Chart Viewer</a> Center Panel Image: <input type='text' name='centerpane_image' value='{$set['centerpane_image']}' /> <h2><center>MENU OPTIONS</center></h2> Menu Colour: <input type='text' name='menu_colour' value='{$set['menu_colour']}' /><a href='colours.html'> Colour Chart Viewer</a> Menu Image: <input type='text' name='menu_image' value='{$set['menu_image']}' /> Menu Position: <input type='text' name='menu_position' value='{$set['menu_position']}' /> Menu Width: <input type='text' name='menu_width' value='{$set['menu_width']}' /> <h2><center>TEXT OPTIONS</center></h2> Font Type ( STATIC ): <input type='text' name='text_font' value='{$set['text_font']}' /> Font Colour ( STATIC ): <input type='text' name='text_fontcolour' value='{$set['text_fontcolour']}' /><a href='colours.html'> Colour Chart Viewer</a> Font Type ( HOVER ): <input type='text' name='text_font1' value='{$set['text_font1']}' /> Font Colour ( HOVER ): <input type='text' name='text_font1colour' value='{$set['text_font1colour']}' /><a href='colours.html'> Colour Chart Viewer</a> Font Size ( STATIC ): <input type='text' name='text_fontsize' value='{$set['text_fontsize']}' /> Font Size ( HOVER ): <input type='text' name='text_fontsize1' value='{$set['text_fontsize1']}' /> <h2><center>EXTRA OPTIONS</center></h2> Drop Header Position: <input type='text' name='droptop_position' value='{$set['droptop_position']}' /> Scroller Message: <input type='text' name='game_message' value='{$set['game_message']}' /> <input type='submit' value='Update Settings' /></form>"; } } $h->endpage(); ?> -
Tufz if your familiar with live sites use your pc as a server this will allow you to test your work or at least get aqauinted with how the coding works... xammp is a free which you can download from google there are others but i use xampp..
-
ok look at the SQL that grabs the select and if its a JOIN ask it to grab username aswell
-
Peter you will need too show us some lines of how users are called for and if its a fetch_array
-
Happy new year to everyone and for those too young to drink HA HA HA HA lol
-
Edited your post Mixmaster