
crimec
Members-
Posts
80 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Everything posted by crimec
-
true very i agree with you there needs to be changes
-
i feel sorry for the community in a yr there will me no active people rememmber richard hes and example of community loss he made great mods he just had a few errors and if the community was good he would have stayed honestly guys we can teach how to code learning php from a site is basic but learning how to code using an engine is what we need we are losing potential we are lacking and soon we will lose you...
-
Just sell the site or guys move one to an active site or best yet make your own* forum the new mccodes etc with all the help we can get we can make an active forum theres lots of people who have new mods for mccodes and the engine could be better think outside the box look at ruthlesscity engine its worth 120 dollars mccodes v2 is not compare them we need a new forum of ourvown with new moderators , staff etc new mods more people equals better mods i have a friend called venom who own outbreakcity.com he learned from mccodes now look at his game its amazing guys all im saying we need a new forum really and making mod sites such as mccodesmods.com is useless why because there the same mods guys new forum ,mods, staff and new community maybe a new engine mccodes is like a game in 1997 think of big games like torn city, crimevalley think outside the box everyone can learn instead of making a lazy engine theres a time where it ok.and a time where there is a time for change.Cmon with the help of us coders imagine what engines we could make what forums we could make and must important what community we can all make mccodes is dead its a thing of the past we are the new generation of coding we are a community so follow me and lets make it lets make it easier to learn easier to learn proper coding imagine a new community, engine, game we could even make a game as good as tc please listen people.
-
well i purchased the engine which im new to and i havep one error i would like you to look at concerning the companies for some reason the companies are not giving working stats so it only makes profit so users dont get paid and its not giving them working stats also i have a t else error in company specials could you take a look im waiting for your reply anyone that i can trust i need someone to have a look at my companies script
-
correct thanks
-
i know i didnt make it check out my current job on few user mod :)
-
looks like a scam to me also no thank you as your work is not good quality no offence needs a bit of ajax, javascript, css3, css, html, html5 you know nice features it looks dull and boring compare that to games like murder-city, breakoutcity.co.uk, crimevalley, outbreakcity(my friend owns thus game) like you could do better work without cpanel details
-
{$ir['location']} or {$r['cityname']}
-
i would like to help mail me
-
mail me i will do for you
-
his host does not support mccodes no sql or anything just file manager serin im talking to him now and im setting him up
-
in other words this guy is asking me to buy him a mccodes licence lol
-
im removing the mods just leaving free mods
-
i will help you
-
//Php tutorial part one /*so what is PHP? PHP stands for PHP: Hypertext Preprocessor Made by crimec PHP is a widely-used, open source scripting language PHP scripts are executed on the server PHP is free to download and use*/ //What is a PHP File? /*PHP files can contain text, HTML, JavaScript code, and PHP code PHP code are executed on the server, and the result is returned to the browser as plain HTML PHP files have a default file extension of ".php" */ //A php syntax //This is basically a php syntax <?php //This is the opening tag ?>//Closing tag //this is how you write a simple hello <?php//php opening tag echo "hello";//executes the text hello using and echo ?>//Closing tag /*so what have we learned today? well we learned that php stands for PHP: Hypertext Preprocessor we also learned that <?php is the php opening tag and <? is the closing tag.Also we learned that (echo) shows a text in this example we used hello.*/ //End of part one
-
i edited it and fixed the bugs sorry not my mod;)
-
will i still get reported for copyright
-
mail me i will help you with your game
-
no adays games like torn city and crimevalley and my m8s game outbreakcity are coded from scratch learn to code
-
no offence can you code at all ask guest or kyle for help they will kindly help for a price
-
your done enjoy
-
Create staff_stocks.php add this <?php include_once('sglobals.php'); echo ' <div class="generalinfo_txt"> <div></div> <div class="info_mid"><h2 style="padding-top:10px;"> Stock Market Panel</h2></div> <div></div> </div> <div class="generalinfo_simple"><br> <br><br> <table width="300" class=table bgcolor="black" border="2"> <tr> <td colspan="100%"><center> <b>Manage Stocks:</b></center></td></tr> <tr><td><a href="staff_stocks.php?action=add">Add Stock</a></a></td> <td> <a href="staff_stocks.php?action=edit">Edit Stock</a></td></tr> <tr><td> <a href="staff_stocks.php?action=del">Delete Stock </a> </td> <td> <a href="stocks.php">Back</a> </td></tr> </td> </tr> </table> </div><div></div><br></div></div></div></div></div> <br/> '; $x = (isset($_GET['action']) && ctype_alnum($_GET['action'])) ? trim($_GET['action']) : FALSE; switch($x) { default: echo ''; break; case 'add': add_stock(); break; case 'del': delete_stock(); break; case 'edit': edit_stocks(); break; case 'editn': edit_stock(); break; } function edit_stocks() { global $ir,$h; echo ' <div class="generalinfo_txt"> <div></div> <div class="info_mid"><h2 style="padding-top:10px;"> Edit Stock</h2></div> <div></div> </div> <div class="generalinfo_simple"><br> <br><br> Edit a stock bellow.<br /><br /> <form action="'.$_SERVER['PHP_SELF'].'?action=editn" method="post">'; $stock = mysql_query("SELECT stockNAME,stockID FROM `stock_stocks`") or die(mysql_error()); while($soc = mysql_fetch_assoc($stock)) { echo '<input type="radio" value="'.$soc['stockID'].'" name="ID" /> '.$soc['stockNAME'].'<br />'; } echo ' <br /><input type="submit" STYLE="color: black; background-color: white;" value="Edit Stock" /> </form></div><div></div><br></div></div></div></div></div>'; } function edit_stock() { global $ir,$h; $ID = abs(@intval($_REQUEST['ID'])); $stre = mysql_query("SELECT stockID,stockNAME,stockOPRICE,stockNPRICE FROM `stock_stocks` WHERE `stockID` = ".$ID) or die(mysql_error()); if(mysql_num_rows($stre) == 0) { echo 'Invalid Stock!'; exit($h->endpage()); } if(isset($_POST['name'])) { $name = mysql_real_escape_string($_POST['name']); $nprice = abs(@intval($_POST['nprice'])); $oprice = abs(@intval($_POST['oprice'])); mysql_query("UPDATE `stock_stocks` SET `stockNAME` = '".$name."',`stockOPRICE` = ".$oprice.", `stockNPRICE` = ".$nprice." WHERE `stockID` = ".$ID) or die(mysql_error()); echo 'Stock edited successfuly'; } else { $row = mysql_fetch_assoc($stre); echo ' <div class="generalinfo_txt"> <div></div> <div class="info_mid"><h2 style="padding-top:10px;"> Editing stock - '.$row['stockNAME'].' </h2></div> <div></div> </div> <div class="generalinfo_simple"><br> <br><br> <form action="'.$_SERVER['PHP_SELF'].'?action=editn&ID='.$ID.'" method="post"> Stock Name: <input type="text" STYLE="color: black; background-color: white;" name="name" value="'.$row['stockNAME'].'" /><br /> Stock Orig Price: <input type="text" STYLE="color: black; background-color: white;" name="oprice" value="'.$row['stockOPRICE'].'" /><br /> Stock Now Price: <input type="text" STYLE="color: black; background-color: white;" name="nprice" value="'.$row['stockNPRICE'].'" /><br /> <input type="submit" STYLE="color: black; background-color: white;" value="Edit Stock" /> </form></div><div></div><br></div></div></div></div></div>'; } } function add_stock() { global $ir,$h; if(isset($_POST['name'])) { $name = mysql_real_escape_string($_POST['name']); $orgp = abs(@intval($_POST['origp'])); mysql_query("INSERT INTO `stock_stocks` (`stockNAME`,`stockOPRICE`,`stockNPRICE`) VALUES ('".$name."',".$orgp.",".$orgp.")") or die(mysql_error()); echo 'Stock Created!'; } else { echo ' <div class="generalinfo_txt"> <div></div> <div class="info_mid"><h2 style="padding-top:10px;"> Add Stock</h2></div> <div></div> </div> <div class="generalinfo_simple"><br> <br><br> Add a stock below<br /><br /> <form action="'.$_SERVER['PHP_SELF'].'?action=add" method="post"> Name: <input type="text" STYLE="color: black; background-color: white;" name="name" /><br /> Original Price: <input type="text" STYLE="color: black; background-color: white;" name="origp" value="2000" /><br /> <input type="submit" STYLE="color: black; background-color: white;" value="Add Stock" /> </form></div><div></div><br></div></div></div></div></div>'; } } function delete_stock() { global $ir,$h; if(isset($_POST['del'])) { $id = abs(@intval($_POST['stock'])); mysql_query("DELETE FROM `stock_stocks` WHERE `stockID` = ".$id) or die(mysql_error()); mysql_query("DELETE FROM `stock_holdings` WHERE `holdingSTOCK` = ".$id) or die(mysql_error()); echo 'Stock Deleted.'; } else { echo ' <div class="generalinfo_txt"> <div></div> <div class="info_mid"><h2 style="padding-top:10px;"> Delete Stock</h2></div> <div></div> </div> <div class="generalinfo_simple"><br> <br><br> <br /><br /> <form action="'.$_SERVER['PHP_SELF'].'?action=del" method="post">'; $stock = mysql_query("SELECT stockNAME,stockID FROM `stock_stocks`") or die(mysql_error()); while($soc = mysql_fetch_assoc($stock)) { echo '<input type="radio" STYLE="color: black; background-color: white;" value="'.$soc['stockID'].'" name="stock" /> '.$soc['stockNAME'].'<br />'; } echo ' <br /><input type="submit" STYLE="color: black; background-color: white;" value="Delete Stock" name="del" /> </form></div><div></div><br></div></div></div></div></div>'; } } $h->endpage(); ?>
-
hello again this is my stock market mod add this to sql CREATE TABLE IF NOT EXISTS `stock_stocks` ( `stockID` BIGINT(25) NOT NULL AUTO_INCREMENT, `stockNAME` VARCHAR(255) NOT NULL DEFAULT 'Default Stock Name', `stockOPRICE` BIGINT(25) NOT NULL DEFAULT '0', `stockNPRICE` BIGINT(25) NOT NULL DEFAULT '0', `stockCHANGE` INT(25) NOT NULL DEFAULT '50', `stockUD` TINYINT(1) NOT NULL DEFAULT '1', PRIMARY KEY (`stockID`) ) ENGINE=MyISAM; CREATE TABLE IF NOT EXISTS `stock_holdings` ( `holdingID` BIGINT(25) NOT NULL AUTO_INCREMENT, `holdingUSER` BIGINT(25) NOT NULL DEFAULT '0', `holdingSTOCK` BIGINT(25) NOT NULL DEFAULT '0', `holdingQTY` BIGINT(25) NOT NULL DEFAULT '0', PRIMARY KEY (`holdingID`) ) ENGINE=MyISAM; CREATE TABLE IF NOT EXISTS `stock_records` ( `recordUSER` BIGINT(25) NOT NULL DEFAULT '0', `recordTIME` BIGINT(25) NOT NULL DEFAULT '0', `recordTEXT` TEXT NOT NULL ) ENGINE=MyISAM; Make a file called stocks.php then add this <?php include_once('globals.php'); if($ir['user_level'] == 1) { echo ' <style language="text/css"> .red { color: red; } .green { color: green; } .stock td { border: 1px black solid; } .stock th { border: 1px black solid; } </style> <div class="generalinfo_txt"> <div></div> <div class="info_mid"><h2 style="padding-top:10px;"> Stock Market</h2></div> <div></div> </div> <div class="generalinfo_simple"><br> <br><br> '; } if($ir['user_level'] > 1) { echo ' <style language="text/css"> .red { color: red; } .green { color: green; } .stock td { border: 1px black solid; } .stock th { border: 1px black solid; } </style> <div class="generalinfo_txt"> <div></div> <div class="info_mid"><h2 style="padding-top:10px;"> Stock Market - <a href="staff_stocks.php">Stock Panel </a> </h2></div> <div></div> </div> <div class="generalinfo_simple"><br> <br><br> '; } $arrs = array('buy','log','sell','removelog','view'); $x = (isset($_GET['trip']) && ctype_alnum($_GET['trip']) && in_array($_GET['trip'], $arrs)) ? trim($_GET['trip']) : FALSE; # False making it not exist making it default page. switch($x) { case 'buy': buy_stock(); break; case 'sell': sell_stock(); break; case 'view': view_stock(); break; case 'log': view_stock_log(); break; case 'removelog': remove_stock_log(); break; default: stock_default(); break; } function view_stock_log() { global $ir,$h; $log = mysql_query("SELECT recordTIME,recordTEXT FROM `stock_records` WHERE `recordUSER` = ".$ir['userid']." ORDER BY `recordTIME` DESC") or die(mysql_error()); if(mysql_num_rows($log) == 0) { echo 'You do not have any log records.'; } else { while($soc = mysql_fetch_assoc($log)) { $time = date('F jS Y g:i:s', $soc['recordTIME']); echo '<strong>'.$time.'</strong> '.str_replace('me', 'You', $soc['recordTEXT']).'<br />'; } } if(mysql_num_rows($log) > 0) { print' <br /> <a href="'.$_SERVER['PHP_SELF'].'?trip=removelog">Clear Logs</a>'; } print' </div><div></div><br></div></div></div></div></div>'; } function remove_stock_log() { global $ir,$h; $log = mysql_query("Delete FROM `stock_records` WHERE `recordUSER` = ".$ir['userid']." ORDER BY `recordTIME` DESC") or die(mysql_error()); echo 'Logs Cleared. </div><div></div><br></div></div></div></div></div>'; } function sell_stock() { global $ir,$h; $id = abs(@intval($_GET['ID'])); $holding = mysql_query("SELECT holdingID,holdingSTOCK,holdingQTY FROM `stock_holdings` WHERE `holdingID` = ".$id." AND `holdingUSER` = ".$ir['userid']) or die(mysql_error()); if(mysql_num_rows($holding) == 0) { echo 'This holding ID does not exist, or you do not own it.'; } else { $soc = mysql_fetch_assoc($holding); $stock = mysql_query("SELECT stockNAME,stockNPRICE FROM `stock_stocks` WHERE `stockID` = ".$soc['holdingSTOCK']) or die(mysql_error()); $stock = mysql_fetch_assoc($stock); $tot = ($stock['stockNPRICE'] * $soc['holdingQTY']); mysql_query("DELETE FROM `stock_holdings` WHERE `holdingID` = ".$soc['holdingID']); mysql_query("INSERT INTO `stock_records` (`recordUSER`,`recordTIME`,`recordTEXT`) VALUES (".$ir['userid'].",unix_timestamp(),'me sold ".$soc['holdingQTY']." of stock ".$stock['stockNAME']." for ".money_formatter($tot)."')") or die(mysql_error()); mysql_query("UPDATE `users` SET `money` = (`money` + ".$tot.") WHERE `userid` = ".$ir['userid']) or die(mysql_error()); echo 'You sold '.number_format($soc['holdingQTY']).' stock of '.$stock['stockNAME'].' for '.money_formatter($tot).'! </div><div></div><br></div></div></div></div></div> '; } } function view_stock() { global $ir,$h; $holdings = mysql_query("SELECT holdingID,holdingSTOCK,holdingQTY FROM `stock_holdings` WHERE `holdingUSER` = ".$ir['userid']) or die(mysql_error()); if(mysql_num_rows($holdings) == 0) { echo 'You do not hold any shares in any stocks atm.</div><div></div></div></div></div>'; } else { echo ' <table border="0" cellspacing="0" cellpadding="0" class="table" width="50%"> <tr> <th>Stock Name</th> <th>Shares</th> <th>Sell Price</th> <th>Sell</th> </tr>'; while($soc = mysql_fetch_assoc($holdings)) { $stock = mysql_query("SELECT stockNAME,stockNPRICE FROM `stock_stocks` WHERE `stockID` = ".$soc['holdingSTOCK']) or die(mysql_error()); $stock = mysql_fetch_assoc($stock); echo ' <tr> <td>'.$stock['stockNAME'].'</td> <td>'.number_format($soc['holdingQTY']).'</td> <td>'.money_formatter($stock['stockNPRICE'] * $soc['holdingQTY']).'</td> <td><a href="'.$_SERVER['PHP_SELF'].'?trip=sell&ID='.$soc['holdingID'].'">Sell Stock</a></td> </tr>'; } echo ' </table></div><div></div><br></div></div></div></div></div>'; } } function buy_stock() { global $ir,$h; $id = abs(@intval($_GET['ID'])); $rows = mysql_query("SELECT stockID FROM `stock_stocks` WHERE `stockID` = ".$id) or die(mysql_error()); if(mysql_num_rows($rows) == 0) { echo 'This stock does not exist.'; exit($h->endpage()); } if(isset($_POST['buy'])) { $amnt = abs(@intval($_POST['amnt'])); $fetch_stock = mysql_query("SELECT stockID,stockNPRICE,stockNAME FROM `stock_stocks` WHERE `stockID` = ".$id) or die(mysql_error()); $stock = mysql_fetch_assoc($fetch_stock); $mprice = ($stock['stockNPRICE'] * $amnt); if($ir['money'] <= $mprice) { echo 'You do not have enough money for this amount of stocks.'; exit($h->endpage()); } $stock_holds = mysql_query("SELECT holdingID FROM `stock_holdings` WHERE `holdingUSER` = ".$ir['userid']." AND `holdingSTOCK` = ".$stock['stockID']) or die(mysql_error()); if(mysql_num_rows($stock_holds)) { mysql_query("UPDATE `stock_holdings` SET `holdingQTY` = (`holdingQTY` + ".$amnt.") WHERE `holdingUSER` = ".$ir['userid']." AND `holdingSTOCK` = ".$stock['stockID']) or die(mysql_error()); } else { mysql_query("INSERT INTO `stock_holdings` (`holdingUSER`,`holdingSTOCK`,`holdingQTY`) VALUES (".$ir['userid'].",".$stock['stockID'].",".$amnt.")") or die(mysql_error()); } mysql_query("UPDATE `users` SET `money` = (`money` - ".$mprice.") WHERE `userid` = ".$ir['userid']); mysql_query("INSERT INTO `stock_records` (`recordUSER`,`recordTIME`,`recordTEXT`) VALUES (".$ir['userid'].",unix_timestamp(),'me bought ".$amnt." of stock ".$stock['stockNAME']." for ".money_formatter($mprice)."')") or die(mysql_error()); echo 'You successfuly bought '.number_format($amnt).' stocks of '.$stock['stockNAME'].'. </div><div></div><br></div></div></div></div></div>'; } else { $stock = mysql_query("SELECT stockID,stockNAME,stockCHANGE,stockNPRICE,stockUD,stockOPRICE FROM `stock_stocks` WHERE `stockID` = ".$id) or die(mysql_error()); $stock = mysql_fetch_assoc($stock); $symb = ($stock['stockUD'] == 1) ? '<big>^</big>' : '<big></big>'; $class = ($stock['stockUD'] == 1) ? 'green' : 'red'; $blip = ($stock['stockUD'] == 1) ? '+' : '-'; $clor = ($stock['stockOPRICE'] < $soc['stockNPRICE']) ? 'green' : 'red'; echo ' <table border="0" class="table" cellspacing="0" width="50%"> <tr> <td>Stock Name</td> <td>'.$stock['stockNAME'].'</td> </tr> <tr> <td>Price Change</td> <td><span class="'.$class.'">'.$blip.' '.money_formatter($stock['stockCHANGE']).' '.$symb.'</span></td> </tr> <tr> <td>Original Price</td> <td>'.money_formatter($stock['stockOPRICE']).'</td> </tr> <tr> <td>Now Price</td> <td>'.money_formatter($stock['stockNPRICE']).'</td> </tr> <tr> <td>Buy Stock</td> <td> <form action="'.$_SERVER['PHP_SELF'].'?trip=buy&ID='.$id.'" method="post"> QTY: <input type="text" name="amnt" value="0" /><br /> <input type="submit" value="Buy" name="buy" /> </form> </td> </tr> </table></div><div></div><br></div></div></div></div></div>'; } } function stock_default() { global $ir,$h; echo ' Here is a list of stocks available along with their price and such.<br /> Stock Market update every 5 minutes !<br /> -> <a href="'.$_SERVER['PHP_SELF'].'?trip=view">View your stocks</a><br /> -> <a href="'.$_SERVER['PHP_SELF'].'?trip=log">View your log</a><br /><br /> <table border="0" cellspacing="0" cellpadding="0" class="table" width="70%"> <tr> <th>Stock Name</th> <th>Stock Orig Price</th> <th>Stock Now Price</th> <th>Price Change</th> <th>View</th> </tr>'; $stocks = mysql_query("SELECT stockID,stockNAME,stockOPRICE,stockNPRICE,stockCHANGE,stockUD FROM `stock_stocks`") or die(mysql_error()); if(mysql_num_rows($stocks) == 0) { echo ' <tr> <td align="center" colspan="5">No stocks available</td> </tr> </table></div><div></div><br></div></div></div></div></div>'; exit($h->endpage()); } while($soc = mysql_fetch_assoc($stocks)) { $symb = ($soc['stockUD'] == 1) ? '^' : ''; $class = ($soc['stockUD'] == 1) ? 'green' : 'red'; $blip = ($soc['stockUD'] == 1) ? '+' : '-'; $clor = ($soc['stockOPRICE'] < $soc['stockNPRICE']) ? 'green' : 'red'; $blic = ($soc['stockOPRICE'] < $soc['stockNPRICE']) ? '+' : '-'; echo ' <tr> <td>'.$soc['stockNAME'].'</td> <td>'.money_formatter($soc['stockOPRICE']).'</td> <td><span class="'.$clor.'">'.$blic.' '.money_formatter($soc['stockNPRICE']).'</span></td> <td><span class="'.$class.'">'.$blip.' '.money_formatter($soc['stockCHANGE']).' '.$symb.'</span></td> <td><a href="'.$_SERVER['PHP_SELF'].'?trip=buy&ID='.$soc['stockID'].'">Buy Or View</a></td> </tr>'; } echo ' </table></div><div></div><br></div></div></div></div></div>'; } $h->endpage(); ?> Continues ...