-
Posts
680 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Raven1992
-
yay new owner for mccodesmods shame cronus left :(
-
hate to disserpoint u that is the actual file name for it staff_stocks.php - - - Updated - - - i didn't my friend used it he said it makes more money for something
-
more detail i still a noob at this ****
-
i not useing netbeans though and all i want to do is remove that message i looked at the file it self here it is but i dunno what to get rid of it <?php /* Start Copy Right Notice! */ /* # You do not re-distribute my files. # You do not claim this as your work. # You do not ask for money to other people for my work. # This is free not paid. # Leaving the copyright is a must (i know alot of you will just take it down :/) # All the work under this file is by written consent kyle mulder's and shall be in tact at all times! # A description of this file is bellow: This is a stock market, a working one, a non buggy one, a non exploitable one, a better one, more feature. Users can buy stocks and every 5 minutes the stock rate will change (like real life). Gives the users something to do. The stocks can crash every 5 minutes making everyone loose there investment and there cash. There will be a .15% that a stock can crash, more likely to happen quite often, but not all the time. If there is a possibility that a stock can crash every 5 minute's. That makes it: # 5 minutes => 1 Crash # 1 Hour => 12 Crashes # 1 Day => 288 Crashes The above is possibilites, does not mean it WILL always happen. Anyways lets get on with the file <img src="images/smilies/smile.png" border="0" alt="" title="Smile" class="inlineimg" /> */ /* End Copy Right Notice! */ include_once('sglobals.php'); echo '<h2>Stock Panel</h2>'; $x = (isset($_GET['action']) && ctype_alnum($_GET['action'])) ? trim($_GET['action']) : FALSE; switch($x) { default: echo 'Need an action dude.. I need a freaking action, do you want me to die here!'; 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,$db; echo 'Edit a stock bellow. <form action="?action=editn" method="post">'; $stock = $db->query("SELECT stockNAME,stockID FROM `stock_stocks`") or die(mysql_error()); while($soc = $db->fetch_row($stock)) { echo '<input type="radio" value="'.$soc['stockID'].'" name="ID" /> '.$soc['stockNAME'].' '; } echo ' <input type="submit" value="Edit Stock" /> </form>'; } function edit_stock() { global $ir,$db; $ID = abs((int) $_REQUEST['ID']); $stre = $db->query("SELECT stockID,stockNAME,stockOPRICE,stockNPRICE FROM `stock_stocks` WHERE `stockID` = ".$ID) or die(mysql_error()); if($db->num_rows($stre) == 0) { echo 'Invalid Stock!'; return; } if(isset($_POST['name'])) { $name = $db->escape($_POST['name']); $nprice = abs((int) $_POST['nprice']); $oprice = abs((int) $_POST['oprice']); $db->query("UPDATE `stock_stocks` SET `stockNAME` = '".$name."',`stockOPRICE` = ".$oprice.", `stockNPRICE` = ".$nprice." WHERE `stockID` = ".$ID) or die(mysql_error()); echo 'Stock edited successfuly'; } else { $row = $db->fetch_row($stre); echo 'Editing stock '.$row['stockNAME'].' <form action="?action=editn&ID='.$ID.'" method="post"> Stock Name: <input type="text" name="name" value="'.$row['stockNAME'].'" /> Stock Orig Price: <input type="text" name="oprice" value="'.$row['stockOPRICE'].'" /> Stock Now Price: <input type="text" name="nprice" value="'.$row['stockNPRICE'].'" /> <input type="submit" value="Edit Stock" /> </form>'; } } function add_stock() { global $ir,$db; if(isset($_POST['name'])) { $name = $db->escape($_POST['name']); $orgp = abs((int) $_POST['origp']); $db->query("INSERT INTO `stock_stocks` (`stockNAME`,`stockOPRICE`,`stockNPRICE`) VALUES ('".$name."',".$orgp.",".$orgp.")") or die(mysql_error()); echo 'Stock Created!'; } else { echo ' Add a stock bellow. <form action="?action=add" method="post"> Name: <input type="text" name="name" /> Original Price: <input type="text" name="origp" value="2000" /> <input type="submit" value="Add Stock" /> </form>'; } } function delete_stock() { global $ir,$db; if(isset($_POST['del'])) { $id = abs((int) $_POST['stock']); $db->query("DELETE FROM `stock_stocks` WHERE `stockID` = ".$id) or die(mysql_error()); $db->query("DELETE FROM `stock_holdings` WHERE `holdingSTOCK` = ".$id) or die(mysql_error()); echo 'Stock Deleted.'; } else { echo 'Delete a stock bellow. <form action="?action=del" method="post">'; $stock = $db->query("SELECT stockNAME,stockID FROM `stock_stocks`") or die(mysql_error()); while($soc = $db->fetch_row($stock)) { echo '<input type="radio" value="'.$soc['stockID'].'" name="stock" /> '.$soc['stockNAME'].' '; } echo ' <input type="submit" value="Delete Stock" name="del" /> </form>'; } } ?>
-
Hi i used Hanted Dawg thread to get the stock market and everything works well but when i head to the staff pannel and click add stock i get this Need an action dude.. I need a freaking action, do you want me to die here! now where do i get rid of that i added what i need to my staff pannel i just need to get rid of this message and start adding stock
-
Hi people i sure you will all know most games are going over to the 360 platform well one ame has centerly tryed it called worldoftanks they be releaseing beta later this year and the offical version next year but i want your opinions on it have they made the right choice and let it install for people to play on or do you think it a waste of time here a sample of their video for the 360 edition
-
Found a website not using a legitimate copy of McCodes V2
Raven1992 replied to bloodless2010's topic in General Discussion
yeah i go with that -
Found a website not using a legitimate copy of McCodes V2
Raven1992 replied to bloodless2010's topic in General Discussion
technerly i had a free downfgrade from v2.5 and mccodes can't do much if people reporting games that are legit copys there all over the internet people can download mccodes anywhere and not get noticed - - - Updated - - - and peter this is my game i gonna learn to do it on my own no friends to help and no strangers to help for money i gonna do it all on my own -
Found a website not using a legitimate copy of McCodes V2
Raven1992 replied to bloodless2010's topic in General Discussion
the law can't handle itself fgs u reporting game for legit copys there only gonna keep on doing it -
Found a website not using a legitimate copy of McCodes V2
Raven1992 replied to bloodless2010's topic in General Discussion
are you gonna report all mccodes v2 games as a living i just curious -
Found a website not using a legitimate copy of McCodes V2
Raven1992 replied to bloodless2010's topic in General Discussion
i beg to differ on that u see this is a mccodes v2 login layout here http://hothradio.co.uk and compare the difference -
Found a website not using a legitimate copy of McCodes V2
Raven1992 replied to bloodless2010's topic in General Discussion
how do u know it mccodes v2 and not a different engine -
mccode-v2 Secured bank (minor update to fit >) + Bank robbery!
Raven1992 replied to yaz94's topic in Free Modifications
um for bank.php do we add it undereth or replace it with this code for bank.php -
i use paygol they always do what they say on there site PayGol i use them for my games and i had no problem from them for a while now i recommend that you use them
-
try reuploading the code agin
-
somehow i disagree on all of you saying that he has helped me get my game running and he has giveing me my mods and i do pay him and his work is brilliant so you guys got it all wrong i can vouch for him that he does good work
-
mod works like a treat +1
-
what you mean mine works fine
-
everyone staying with v2 untill v3 comes out but u can sell v 2.5 to people
-
what file do i use to put on my explore page for this mod i got it all set up
-
go with the 3rd option and pick NWE
-
mine kinda sucks as i on peak time so i get limited bandwith till the weekend
-
mccode-v2 New free advanced player report
Raven1992 replied to Sam Fisher's topic in Free Modifications
does it 100% work -
ruler m8 you will be missed
-
This is to the americans happy thanksgiving day America **** yeah-team america