Jump to content
MakeWebGames

NonStopCoding

Members
  • Posts

    572
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by NonStopCoding

  1. So far there will be a cars list for the owner to create cars for his/her game and you can set if they can be stolen from the shop. Shops for each city that will list cars and car parts which will upgrade. You will be able to own your own garage which will only hold x amount of cars if you leave your car on street theirs a chance it can be stolen or broken into and damaged. You can buy as many garages as you wish Think i wont go into anymore details but there is lots more to come :)
  2. Hey just a quick message i had to drop everything to some serious life problems and i will be back for most of the time. I am currently looking for any types of projects listed below. * Bug fixes / Security issues * Full Module Creation * Have experience in database (mysql) * my main skills are listed PHP, HTML, JS, CSS (i will admit i am not a expect with the last 2 but do have knowledge in it.) Ok on point just thought i would intrucde a new module i have been working on my free time its not completed yet but tomorrow i will start posting what i have done so far. i will say its a car module for mccodes v2.05b but can get it to work for 2.0 and it will be a paid module as its going to be big and have lots to do to make the cars useful.
  3.   looks nice slasher if you need another developer for stuff i would be glad to help and i'm cheap lol :P
  4. well spotted missing a closing )   if(array_key_exists('choose', $_GET)) {
  5. there is no security issues in it but i do notice you use the rand() function you could get better random results using mt_rand()
  6.   Yea hard to see on picture post code please
  7. i have some free time and would be interested message me your budget.
  8. $items = array_unique(array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22)); $itemtypes = $db->query("SELECT `itmtypeid`,`itmtypename` FROM `itemtypes` WHERE `itmtypeid` IN(".implode(',',$items).")"); if($db->num_rows($itemtypes)) { // use the num rows to check if its real while($itm = $db->fetch_row($itemtypes)) { // success run whatever it is you are trying. } } else { // failed }   just change the ids to whatever you want to show or you can alter the query and make it say NOT IN and then have your ids you wish to block.
  9. Yea sorry about that i just got fed up with everyone putting money into mccodes and paying for mods on a market which mccodes wont pay out but are quick enough to spend it. So now i made my mods free section with option to buy it if they don't see this message on the forums.
  10.   your escaping a number that's not needed
  11. goto agree with ip on this one filter validate email is much better
  12. function update($update) { global $db; if($update) { $db->query("UPDATE `tablename` SET `pagenum` = {$update}");   at the start of every page you need to add update(1 or 2 or whatever)
  13.   change line 33 to <span>Jackpot ".money_formatter(50 * $lottoconfig['ticketprice'] * $amt)."<span><br />    
  14. lol was just a suggestion :P but yea i see your point
  15. Hello all i have moved all my modules from mccodes.com and moved them to my own personal site i have changed all prices to $0 inside the modules will be a txt file on how to buy and get your file itself or a email to get in touch with me if you wish to ask a question's about the module. Oops almost forgot that if you use discount Move2016 you will get 15% off single or entire purchase unlimited uses for 3 weeks
  16. you can cut your code down with the if statements for example you can still use the text inside the {} brackets like this   if($ir['strank'] == 1) echo "something"; else if   can also be done in a switch statement aswell as if and else if look ugly lol
  17. thats a good ideas actually iv been wondering how it could be updated some but jquery added in would be cool goodluck :)
  18.   basicly lets say you have a form that sends username to you inside this you are passing there username to you using the post variable and the name   <form method='post' action='filename.php'> <input type='text' name='user' placeholder='insert your name here' /> </form> // now lets see the back end of the code im not going to add in security as its only a example echo $username; as we have not made the variable username it would show up as a undefined error called user but if we made a variable called $username = $_POST['user']; // it would show the name.
  19. i know you only wanted to block gun but say in future you changed your mind the array was there blocking the gun already if you wanted to block a special item then you could addapt the code easy without adding || $r['itemtype'] == xx etc if that makes any sense to you but if not [uSER=53425]Magictallguy[/uSER] did it for you :P even tho it does the same thing
  20. instead of using the !== which is identical use the == (equals) so basicly try this $q = $db->query("SELECT `inv_userid`,`inv_itemid`,`itmtype` FROM `inventory` AS iv INNER JOIN `items` AS i ON `iv`.`inv_itemid` = `i`.`itmid` WHERE `iv`.`inv_userid` = {$ir['userid']} AND `i`.`itmid` = ".$_GET['ID']); // you are missing a row to check if the item is even real just assuming it is if(!$db->num_rows($q)) { $db->free_resources($q); echo "Invalid Item."; $h->endpage(); exit; } $r = $db->fetch_row($q); if(in_array($r['itmtype'],array(15))) { echo "This item is not a Gun!<br /> <a href='inventory.php' class='button'>Exit</a>"; $h->endpage(); exit; } if that fails try this $q = $db->query("SELECT `inv_userid`,`inv_itemid`,`itmtype` FROM `inventory` AS iv INNER JOIN `items` AS i ON `iv`.`inv_itemid` = `i`.`itmid` WHERE `iv`.`inv_userid` = {$ir['userid']} AND `iv`.`itmid` = ".$_GET['ID']); // you are missing a row to check if the item is even real just assuming it is if(!$db->num_rows($q)) { $db->free_resources($q); echo "Invalid Item."; $h->endpage(); exit; } $r = $db->fetch_row($q); if(in_array($r['itmtype'],array(15))) { echo "This item is not a Gun!<br /> <a href='inventory.php' class='button'>Exit</a>"; $h->endpage(); exit; } so basicly with the array option you need to add a , followed by another item type you wish to block    
  21. ok purchase link added http://nonstopcoding.com/?download=auction-module if you are looking for other grpg modules here is the link to all my grpg mods for sale. http://nonstopcoding.com/?download_category=generic-rpg-modules
  22.   looks like a mysql error could be wrong but it has a && in the statement and i think thats for php only try change that to AND so like this   $ujk=$db->query("SELECT * FROM loaned WHERE nUSER=$userid AND nITEM={$i['itmid']} LIMIT 1",$c);
  23.   1. Yes it is possible (People do it for development) 2. As suggested it can have risks. 3. For it to work you can use Wamp or Xamp or some sort of programme that has php and mysql installed on it which will work with your computer. I offered shared hosting (resources are shared among a very small group of customers so plenty to go around if you wish to speak more about that let me know)
  24. was going to try something like this but as i said it dont allow tags   $msg = "Item Name: Test><hr>"; $msg.= "Item Cost: $1.500"; $i['itmname'] = "<span style='color: red;'>*</span>" . ".<a href='' title='{$msg}'>".$i['itmname']."</a>";   it can be done but i was trying a quick way but it messes up as it don't tags html lol will need css and little html
×
×
  • Create New...