Jump to content
MakeWebGames

boionfire81

Members
  • Posts

    532
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by boionfire81

  1. Ok, going to be working on this today. [uSER=53425]Magictallguy[/uSER] :) Where do I obtain the jquery-ui.css and a jquery.js? Or is that the same as what is included in the mcc jquery1.7.1.min.js?
  2. That is basically saying put:   define(‘IN_PHPBB’, true); /* set scope for variables required later */ global $phpbb_root_path; global $phpEx; global $db; global $config; global $user; global $auth; global $cache; global $template; # your php extension $phpEx = substr(strrchr(__FILE__, ‘.’), 1); $phpbb_root_path = ; /* includes all the libraries etc. required */ require($phpbb_root_path .”common.php”); $user->session_begin(); $auth->acl($user->data); /* the file with the actual goodies */ require($phpbb_root_path .”includes/functions_user.php”); /* All the user data (I think you can set other database fields aswell, these seem to be required )*/ $user_row = array( ‘username’ => “Username”, ‘user_password’ => md5(“Password”), ‘user_email’ => “Email”, ‘group_id’ => $default_group_id, ‘user_timezone’ => ‘1.00’, ‘user_dst’ => 0, ‘user_lang’ => ‘en’, ‘user_type’ => ‘0’, ‘user_actkey’ => ”, ‘user_dateformat’ => ‘d M Y H:i’, ‘user_style’ => $not_sure_what_this_is, ‘user_regdate’ => time(), ); /* Now Register user */ $phpbb_user_id = user_add($user_row);   Problem is $db is already defined in mcc.
  3. 1,2,3,4,5,6,7,8,9,10
  4. 1,2,3,4,5,6,7,8,9,10
  5. I will try that. But I don't want to block the itemtype I only want the item type gun (15) to allow ammo purchases.
  6. No, lol. I'm just wanting my game to seem more "live" tracking their "location" as they travel around the city type thing.
  7. Didn't work.
  8. I'm working here on 1 item. A rifle, itemid 297 itmtype 15   $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']}"); $r=$db->fetch_row($q); if($r['itmtype'] !== 15) { echo "This item is not a Gun!<br /> <a href='inventory.php' class='button'>Exit</a>"; $h->endpage(); exit; }   But it keeps giving me that ^ portion of the script. Also tried   if($db->num_rows($q)==0)
  9. True, but I haven't found any other site with mcc mods
  10. I'm thinking of making it a donator feature for friends/blacklist. Otherwise, it is probably just plain stalking lol.
  11. Dude you know how old mccodes is? lol. Plus it showed up in mccodes.com mod search ;)
  12. Nothing is showing up in the Time column. My code: attackwon.php; $hosptime = rand(1200, 2400) + floor($ir['level'] / 8); $standardhosptime = $hosptime / 60; $db->query( "UPDATE `users` SET `hp` = 1, `money` = `money` - $stole, `hospital` = $standardhosptime, hostime=unix_timestamp() + $hosptime, `hospreason` = '{$hospreason}', `hosp_bill` = `hosp_bill` + $hosptime * 10 WHERE `userid` = {$r['userid']}");   hospital.php $q = $db->query( 'SELECT `userid`, `username`, `hospital`, `level`, `hospreason`, `gangPREF`, hostime FROM `users` AS `u` LEFT JOIN `gangs` AS `g` ON `u`.`gang` = `g`.`gangID` WHERE `u`.`hospital` > 0 ORDER BY `u`.`hospital` DESC'); while ($r = $db->fetch_row($q)) { $time=time(); echo " <tr> <td>{$r['gangPREF']} <a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> [{$r['userid']}]</td> <td>{$r['level']}</td> <td><div id='notifier'></div> <script type='text/javascript'> (function () { function display( notifier, str ) { document.getElementById(notifier).innerHTML = str; } function toMinuteAndSecond( x ) { return Math.floor(x/60) + ':' + (x%60<10?'0':'')+x%60; } function setTimer( remain, actions ) { var action; (function countdown() { display('{$r['userid']}', toMinuteAndSecond(remain)); if (action = actions[remain]) { action(); } if (remain > 0) { remain -= 1; setTimeout(arguments.callee, 1000); } })(); // End countdown } setTimer({$r['hostime']}-$time, { 0: function () { display('notifier', 'Releasing'); } }); })(); </script></td> <td>{$r['hospreason']}</td> </tr>
  13. Just curious did anyone get this to display on user profiles?
  14. Anybody know where to get the download from? Or if you can recreate the file for a fee. This should be an awesome mod. I'm guessing all that is missing is the audio file? But not knowing the details of the file makes it hard to search for a replacement. Thanks
  15. Since I have so many areas that need a member id input for action, I'm wanting to duplicate the Torn style member dropdown function. Anyone up for the challenge?
  16. Yeah, now that I have the jquery inventory I think I can duplicate the tooltips elsewhere. Thanks guys!
  17. 1,2,3,4,5,6,7,8,9,10
  18. No, what I'm saying is if they refresh the page afterwards (in an attempt to insert more items) THEN that error comes up. But if they only had 1 in their inventory they item no longer exists.
  19. Dude, I know that >.<  
  20. ok, another question with _GETs. How should this work as it's letters and characters if($_GET['type'] == "equip_primary")   $_GET['action'] = isset($_GET['action']) && ctype_alnum($_GET['action']) ? $_GET['action'] : null; won't work. It's actually in equip_weapon.php line 54.  
  21. So if someone donates an item, then simply refreshes the page. This shows up [h=1]Critical Error[/h] A critical error has occurred, and page execution has stopped. Below are the details: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Action taken: Attempted to execute query: SELECT * FROM items WHERE itmid=   The issue is after the donation the item is no longer there. How can I block that error?
  22. Do you still have this?
  23. yeah kinda Basically, Item Name: itmname Item Type: itmtype (If weapon: Damage: weapon) (if armour: Defense: armor) (If item owned Owned: qty)
  24. With everything on my plate at the moment, I don't have time for this at the moment. I would like to turn the iteminfo.php into a tooltip on hover for item images. Anybody up for the challenge?
×
×
  • Create New...