Jump to content
MakeWebGames

Joshua

Members
  • Posts

    1,271
  • Joined

  • Last visited

Everything posted by Joshua

  1. Edited: I'll go over it in a bit, looks good.
  2. Meh 19 of 20 on the php. I never was sure on the fopen() question. and wth I missed 2 on the SQL test. I'm dumb! :O
  3. Some functions turn a negative integer in a 0 Some functions will accept negative integers while still assuming it's an integer. Various functions do various things, but all in all, nice idea.
  4. Spending almost 4 hours trying to figure out how to make names different colors on the McC engine. I knew html, but I looked all through the files trying to figure out how to add custom name colors loll Yes, I was noobish :p
  5. Joshua

    Mod price

    Considering something very similar is on here for free i'd say 3-5.00 depending on how well it's coded. Gl
  6. still kickin
  7. You couldnt just use the class file as the config is run seperately for actually connecting to the database >< You would need to add all the connection queries etc then actually define db as new
  8. Joshua

    trying to learn php

    For starters, learning php and designing = 2 totally different language ;-)   You want to design layouts etc look into xhtml / css / html etc etc.   PhP is a language all unto it's own and is ever evolving. Browse around, play around, eventually you will grasp the basic concept and blam, you'll be on your way from there =)
  9. Joshua

    Youtube

    Halo Reach is to sexy for me to want to play cod anymore :P
  10. Just found this while surfing and love there stuff, so here is the link http://l33t.razerzone.com/index.php?user_dtl=8e7280515f726d50aba216baf8023ccb Free razer stuff for 1,337 people apparently :O
  11. Above the <head> </head> bit in your header.php file, i'm sure you could run a query something along the lines of... $x = $db->query("SELECT `newmail` from `mail` WHERE `newmail` > 0 "); Just an example i can't remember what the mail tables are at the moment ^ $y = $db->fetch_row($x); $mail = ($y['newmail'] > 0) ? $y['newmail'] : '' ; Something along those lines, then in your <head> tags just insert the php code <head>' . $mail . '</head> or if your head is html / xhtml <head><?php echo ' . $mail . ' ; ?> </head>
  12. Try writing scripts lol No, really. I wanted a script, I tried writing it. When the limited stuff I knew couldn't write the script, I google'd for what would work. Then tried to learn what it was and how it worked. Each time I try and do something new that I don't know i google it, mainly directs me to php.net or w3schools but the concept remains. It's not the best way to learn the language in a whole, but it gives you the general idea. But as said above many times, it's not something you learn over night and you never really KNOW it as it always updates to newer versions :)
  13. It was for sale quite some time back, if i hadnt' sold so many copies for quite a good deal I would have gladly released it for free. As it stands now I can't do that >,< You can see it run life at new-mafiawars.com or I believe underworldwars.com also purchased a copy if memory serves correct
  14. I wouldnt start over with a new one, hell I would almost take over the one you have now as it has potential and I need a new project. But, you would have to actually sit down and plan everything out about the future not just slap up a game and call it a game.
  15. Super old post Lets all gander at my lack of coding knowledge a year ago lol.
  16. $total = $db->query("SELECT count(`bank_employee`) \"TOT\" FROM `bankemployees` WHERE (`bank_id`=".abs((int) $rar['bid']).")");   had to define the column i'm calling then call to it properly using fetch_row['column_name']
  17. What am I missing with your query. Apparently I'm not as versed as I thought because it won't echo the correct amount of employees ><,
  18. I re-vamped one awhile back to have those options, the one click was just so i didnt have to keep clicking over and over. It just shows the sum outcome and winner/loser damage. I'm making a new one after i finish this User Driven Banking / Employee / Real Estate system that will be Options during attacks. i.e Where to hit them, etc, more than 1 person can attack at same time yadda yadda.
  19. Using a method similar to what you were referring to A_bert   <?php require_once('globals.php'); switch($_GET['action']) { case "bankindex":bankindex();break; case 'bankpage': bankpage(); break; case 'remove': remove(); break; default:bankindex();break; } function bankindex() { global $db, $ir, $h; // bid for BANK ID, bname for BANK NAME, bowner for BANK OWNER, // bvault for BANK VAULT, binterest for BANK INTEREST RATE --Bank Tables echo '[b]Welcome to The User Bank Index[/b] Users Are able to create their own banking system, define their interest Hire employees, and much much more. Giving you the the chance to choose the right Bank for you! If you come here seeking employment please refer to the bank page for hiring options. <table class=table> <tr><th>Bank Name</th> <th>Bank Owner</th> <th>Bank Interest</th> <th>Bank Employees</th> <th>Bank Page</th> </tr>'; $bankq = $db->query("SELECT `b`.`bname`,`b`.`binterest`,`b`.`bid`,`b`.`bowner`, " . "`u`.`username`,`u`.`userid` " . "FROM `bank` `b` " . "LEFT JOIN `users` `u` " . "ON `u`.`userid`=`b`.`bowner` " . "ORDER BY `bid` ASC"); // $bankq is the mysql_query joining banks and users. while($rar = $db->fetch_row($bankq)) { echo '<tr> <td>'.stripslashes(htmlentities($rar['bname'])).'</td> // We must remember to secure input as well. <td>'.$rar['username'].'</td> <td>'.abs((float) $rar['binterest']).'</td>'; //abs float secures decimal although it should already be. $total = $db->query("SELECT `bank_employee` FROM `bankemployees` WHERE (`bank_id`=".abs((int) $rar['bid']).")"); $amount = $db->num_rows($total); // This is Selecting the total # of employees for each bank echo '<td>'.$amount.'</td> <td>[url="userbanks.php?action=bankpage&ID='.abs((int) $rar['bid']).'"]Bank Home Page[/url]</td> </tr>'; } } function bankpage() { global $db, $ir, $h; } ?>   You're right, it's much simpler with plenty of additional features.
  20. Joshua

    Spider Pug

    This must be a super advanced Image Script for Mccodes or else it's in the wrong section! ;)
  21. Did anyone ever use the one click attack script I made to go with this?
  22. Havent had time to correct the errors in this code, SO.   NOTE****THIS CODE is NOT secure. If you choose to USE this code, Within literally 2 minutes I could have the Max allowable cash in game and that's the easy part.   So lets not use it for now eh? Look at it as a learning experience :-)
  23. Katalin I already made a mod, a very large mod that does that. Own multiple hookers, post them on street corners other users use them for perks. It intertwines with the gangs as only gangs who own turf in said city can do this.
  24. Just my 2 cents in reference to the above post. I always found games better when gaining stats/level/money are hard. Work out, gain maybe 2 strength. rob someone oo 3 dollars. Weapons cost a lot housing costs a lot etc etc. It ensures no one will get to powerful to quickly and cap your game, as then it becomes dull and dies.
  25. I'm fairly well versed with the SQL and it's set-up although there are a few features I dont use often. But I do appreciate the info and I'll keep that in mind, going to give your set-up a try as you did have a valid point ^_^
×
×
  • Create New...