Jump to content
MakeWebGames

NarutoPRG.com

Members
  • Posts

    167
  • Joined

  • Last visited

Everything posted by NarutoPRG.com

  1. ezRPG is brilliant. Zeggy developed it like it was a paid script(but with less files :P ). If you had a bug, you could of posted on MWG(sorry if you did and no-one replied). Or mail Zeggy asking for help. :)
  2. 1) I've seen your recent updated one. Kind of scuffy :) No thanks 2) I've seen him Type. And he's fast :) so yeah. No thanks.
  3. No offence Danny. But if I had a choice, I would pick Dave. Why?:Well 1: He code is cleaner 2: He's quick at typeing(Seen on TV) 3: He's a better coder 4: He thinks outside of the request(to make it better of course ;) )
  4. Right now, if you want a secured and clean script. Go for Horizons. I am looking forward to see what V3 is like, so keep that as an option.
  5. @ Wickidnezz: Wouldn't it be just easier just too post the Error? Not the full code. -_-
  6. Lmao. Faill.. It's that picture.. ¬_¬
  7. DJK made something Similar to that Roz. Aries, look through DJK post. It should be there mate. If so, try and put the code in. :) EDIT: I'm not cretin' if it will work. Haven't looked at the code for a while. But worth a try.
  8. Cheers Roz. I need to work on my querys. Right now, I need a hosting to try to test the on. Or anything the supports PHP, MySQL. PHPMYADMIN is what's needed for me now. But yet again, thanks for the advice. :)
  9. Haven't seen nothin' like that mate. Good work. :)
  10. Ty Equinox. :) Was really useful information mate mate. I didn't know was deprecated. :P
  11. Ahh right. Thanks Danny bud. :) EDIT: I don't like thing being open. But just my way of doing stuff mate =P
  12. Hey, So I continue to learn(when I CBA). I Was jusr practising on the cmarket.php, as was wondering what doesn't need to be there, or what's a better option. Here it is:   <? require_once(DIRNAME(__FILE__). '/globals.php'); $_GET['action'] = (isset($_GET['action'])) && (is_string($_GET['action'])) ? (strtolower(trim($_GET['action']))) : FALSE; $_GET['ID'] = (abs((int)$_GET['ID'])); echo '<h3>Crystal Market</h3>'; switch ( ($_GET['action']) ) { case "buy": crystal_buy(); break; case "remove": crystal_remove(); break; case "add": crystal_add(); break; default: cmarket_index(); break; } function cmarket_index() { global $db,$ir,$c,$userid,$h; echo '[url="cmarket.php?action=add"]Add a Listing[/url] <table width = "75%" `cellspacing` = "1" class = "table"> <tr style="background:gray"> <th>Adder</th> <th>Qty</th> <th>Price each</th> <th>Price total</th> <th>Links</th> </tr> '; $Cmarket_info = ($db->fetch_single($db->query("SELECT cm.*, u.* FROM crystalmarket cm LEFT JOIN users u ON u.userid = cm.cmADDER ORDER BY cmPRICE/cmQTY ASC "))); while ( $user_adder = ($db->fetch_row($Cmarket_info)) ) { if ( (number_format($user_adder['cmADDER'])) == ($_GET['ID']) ) { $link = '<a href = "cmarket.php?action=remove&ID = '.number_format($user_adder['cmID'].'">Remove?</a>'; } else { $link = '<a href = "cmarket.php?action=buy&ID = '.number_format($user_adder['cmID']).'">Buy</a>'; } $each = (number_format($user_adder(['cmPRICE']))) / (number_format($user_adder(['cmQTY']))); echo '\n <tr> <td>[url="viewuser.php?u='.number_format($user_adder['userid']).'"]'.$user_adder['username'].'[/url] ['.number_format($user_adder['userid']).'] </td> <td>'.number_format($user_adder['cmQTY']).'</td> <td>($each)</td> <td>$'.number_format($user_adder['cmPRICE']).'</td> <td>[$link]</td> </tr> '; } echo '</table>'; } function crystal_remove() { global $db,$ir,$c,$userid,$h; $Cmarket_info = ($db->fetch_single($db->query("SELECT * FROM `crystalmarket` WHERE `cmID` = ".($_GET['ID'])." AND `cmADDER` = ".($_GET['ID'])." "))); if ( (!$db->num_rows($Cmarket_info)) ) { echo 'Error, either these crystals do not exist, or you are not the owner. [url="index.php"]Home[/url] '; $h->endpage(); exit; } $user_adder = ( ($db->fetch_row($Cmarket_info)) ); $db->query("UPDATE `users` SET `crystals` = `crystals` + ".number_format($user_adder['cmQTY'])." WHERE `userid` = ".($_GET['ID'])." "); $db->query("DELETE FROM `crystalmarket` WHERE `cmID` = ".($_GET['ID'])." "); echo 'Crystals removed from market! [url="home.php"]Home[/url] '; $h->endpage(); exit; } function crystal_buy() { global $db,$ir,$c,$userid,$h; $Cmarket_info = ($db->fetch_single($db->query("SELECT * FROM crystalmarket cm WHERE `cmID` = ".($_GET['ID'])." "))); if ( (!$db->num_rows($Cmarket_info)) ) { echo 'Error, either these crystals do not exist, or they have already been bought. [url="home.php"]Home[/url] '; $h->endpage(); exit; } $user_adder = ( ($db->fetch_row($Cmarket_info)) ); if ( (number_format($user_adder['cmPRICE']) > ($ir['money'])) ) { echo 'Error, you do not have the funds to buy these crystals. [url="home.php"]Home[/url] '; $h->endpage(); exit; } $db->query("UPDATE `users` SET `crystals` = `crystals` + ".number_format($user_adder['cmQTY'])." WHERE `userid` = ".($_GET['ID'])." "); $db->query("DELETE FROM `crystalmarket` WHERE `cmID` = ".($_GET['ID'])." "); $db->query("UPDATE `users` SET `money` = `money` - ".number_format($user_adder['cmPRICE'])." WHERE `userid` = ".($_GET['ID']." "); $db->query("UPDATE `users` SET `money` = `money` + ".number_forumat($user_adder['cmPRICE'])." WHERE `userid` = ".number_forumat($user_adder['cmADDER'])." "); event_add ($user_adder['cmADDER'] , '<a href = "viewuser.php?u=".($_GET['ID'])."">'.($ir['username']).'</a> bought your '.number_format($user_adder['cmQTY']).' crystals from the market for $'.number_format($user_adder['cmPRICE']).'.',$c); echo 'You bought the '.number_format($user_adder['cmQTY']).' crystals from the market for $'.number_format($r['cmPRICE']).'.'; } function crystal_add() { global $db,$ir,$c,$userid,$h; $_POST['amnt'] = (abs((int) $_POST['amnt'])); $_POST['price'] = (abs((int) $_POST['price'])); if ( ($_POST['amnt'])) { if ( ($_POST['amnt']) > (number_format($ir['crystals'])) ) { echo 'You are trying to add more crystals to the market than you have.'; $h->endpage(); exit; } $tp = ( ($_POST['amnt']*$_POST['price']) ); $db->query("INSERT INTO `crystalmarket` VALUES ( '',".($_POST['amnt'])." , ".($_GET['ID'])." , ($tp) ) "); $db->query("UPDATE `users` SET `crystals` = `crystals` - ".($_POST['amnt'])." WHERE `userid` = ".($_GET['ID'])." "); echo 'Crystals added to market! [url="cmarket.php"]Back[/url] '; $h->endpage() exit; } else { echo '[b]Adding a listing.[/b] You have [b]'.number_format($ir['crystals']).'[/b] crystal(s) that you can add to the market. <form action = "cmarket.php?action=add" method = "post"> <table width = "50%" border = "2" > <tr> <td>Crystals:</td> <td><input type = "text" name = "amnt" value = '.($ir['crystals']).' /> </td> </tr> <tr> <td>Price Each:</td> <td><input type = "text" name = "price" value = "200" /> </td> </tr> <tr> <td colspan = "2" align = "center"> <input type = "submit" value = "Add To Market" /> </tr> </table> </form> '; } } $h->endpage(); ?>   Nothing Major, but I could do with some help like every body. :)
  13. God dame Dav, you got here before me. :( Experiment. Look at other files and see how there "installed". I posted to tell you to at-least try and do it yourself for one -.-
  14. Cron, you said too me you want to get better. But yet you continue too ask and ask to help you. I don't mind helping people(not you), but I agree with Jordan. You are being Lazy.
  15. I totally agree Dayo! Through out the first 2 weeks of new management was going great! But like you said, it's slowly dying witch is tragic because MWG is a great place for Web Dev & Design, and much more! But we cannot put all the blame on CB & Dabs on the request sections, and the help section. We as a community should help these people that are wanting to make their game better. The responsibility shouldn't be put on CB & Dabs alone. But CB & Dabs are the owners of MCC. They should surly be in control?: True. But through the post Mdshare started, most of the community is mainly concentrated on MCC. Witch I believe myself CB & Dabs are great to run and help the forum along with us. But since it's so based on MCC and around 85% concentrate on this 1 engine(what ever you call it), their help is needed, as our's is some time.
  16. Editing some modifications in MCC(lLike forums.php), can help you in some ways. Of-course, you will not learn advanced things from this, but what will be need for development. Functions, Syntax, and more stuff.
  17. Holy crap. Completely forgot about that :P I'll PM you it. :)
  18. Add my MSN mate, and open TV. I'll see what I can do. :)
  19. Sorry no offence Aries, but you just Owned mate. :pinch:
  20. Not to suck up my own ass here Kieranrobo. But I've seen people not as good as me sell their work, and they've sold quite alot of work. So I think my work is worth Charging for. :)
  21. Wow, sounds pretty awesome mate! Good luck with the Portfolio. :D
  22. I know this is quite old now. But anyway :D I had a program of George to make it look better, so I thank him :)
  23. Very interested. :) I can do some work for you. Of course, I do charge :P But PM me when ever you need work mate :)
  24. I googled it... I had to render it out.. I'll try and get the link through the Hisotory. :)
  25. Erm... What? Why when I could just use My computer with Dreamweaver on. There is a choice in this matter. Now can we please get back on Topic. Want to discuss more? PM me.
×
×
  • Create New...