Jump to content
MakeWebGames

castle

Members
  • Posts

    97
  • Joined

  • Last visited

    Never

Everything posted by castle

  1. I am getting this error:   Fatal error: Cannot redeclare class headers   when someone is in the hospital. It's off of this line in the header file:   class headers {   Has anyone experienced this?
  2. Re: [mccode v1 v2] player card can you use any image, or do you have a link for the image in the thread?
  3. Re: New Houses Mod [Mccodes V2] worked great richard, love this mod one other problem, I am getting this message: You cannot add upgrades to a non-existant house. even though the house does exist.
  4. Re: New Houses Mod [Mccodes V2] on the view rental function I got this error:   Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource   on this line:   while($r = mysql_fetch_assoc($houses))
  5. Re: Profile picture in header thank you :lol:
  6. how would you get the profile picture to appear in the header. tried this, but did not work:   [img={$r[] [b]Name:[/b] $gn{$u} [{$ir['userid']}] $d [b]Money:[/b] {$fm} [b]Credit Card: [/b]\${$ir['creditcard']} [b]Level:[/b] {$ir['level']} [b]Points:[/b] {$ir['points']}   did a search but did not find anything
  7. Re: Changing Whole Header when in hospital can alabamahit's example be changed to show different headers for hospital and jail?
  8. Re: [mccodes v2.0] Yet Another Attack i did test it with weapons and armor equipped
  9. Re: [mccodes v2.0] Yet Another Attack i am getting: Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 16 in /home/content/m/o/b/mobsterworld/html/class/class_db_mysql.php on line 94
  10. Re: [mccode v2] userADS in the sql, should   `poster` int(10) NOT NULL,   be varchar instead?   and you can go into the negative with your money
  11. Re: [MCcode V2] attack.php recode it was nothing major, it was this:   <td><img src=greenbar.pngwidth='".$vars2['hpperc']."' height = '10'>   I certainly do not having the coding skills you have, I was not implying there was anything wrong with your work and my pictures are not externally hosted.
  12. Re: [MCcode V2] attack.php recode fixed a small spacing error and set it to the default mccodes tables:   if($ir['display_pic']) { $pic = "[img=".$ir[]"; } else { $pic = "[img=mobster.jpg]"; } if($odata['attpics']) { $ture = "[img=display_pic/".$odata[] "; } else { $ture = "[img=mobster.jpg]"; } echo " <table width='50%' vlass='table' align='center'> <tr> <th> {$odata['username']} Health: </th> <th> {$ir['username']} Health: </th> </tr> <tr> <td><img src=greenbar.png width ='".$vars['hpperc']."' height ='10'> <img src=redbar.png width ='".$vars['hpopp']."' height = '10'> {$ture} </td> <td><img src=greenbar.png width='".$vars2['hpperc']."' height = '10'> <img src=redbar.png width='".$vars2['hpopp']."' height= '10'> {$pic} </td> </tr> </table>";
  13. Re: [mccode v2] Annoucements Upgrade! much needed improvement, thanks
  14. Re: [mccode v2] Player of the week... would that colored name thing go into the header file?
  15. Re: Calling it a Day :) thanks, and merry x-mas
  16. Re: [mccode V2] Player of the week... It erases the winner by having this in your day cron:   $db->query("UPDATE users SET player_week=-1 WHERE player_week > 0");   I moved it to the weekly cron, so the winner is displayed all week:   <?php include "globals.php"; $db->query("UPDATE users SET player_week=-1 WHERE player_week > 0"); $q=$db->query("SELECT userid FROM users WHERE laston > unix_timestamp()-86400*10 AND fedjail = 0 AND player_week = 0 ORDER BY rand() limit 1"); while($rr=$db->fetch_row($q)) { $item=rand(10,12); item_add($rr['userid'], $item, 1); $qn=$db->query("SELECT itmname FROM items where itmid='$item'"); $n=$db->fetch_row($qn); event_add($rr['userid'],"You have been chosen as Player of the Week!!!! You have been awarded with 10 Donator Days and an {$n['itmname']}. Hope you enjoy your reward and thank you for being active. Thanks from the MWO Staff.",$c); $db->query("UPDATE users SET donatordays = donatordays + 10, player_week = 7, pw_reward='$item' WHERE userid='{$rr['userid']}'"); } ?>
  17. Re: [mccode V2] Player of the week... thanks killah
  18. Re: [mccode V2] Player of the week... this is nice, but I can't get it to display the users picture, only the default picture, this is my newspaper file:   <?php include "globals.php"; print "<h3>The Official MWO NewsPaper</h3>"; $q=$db->query("SELECT * FROM papercontent LIMIT 1"); $content=$db->fetch_single($q); print "<table width=75% cellspacing=1 class='table'><tr><td></td> <td></td> <td></td></tr><tr><td><h2>Player of the Week</h2>"; $q=$db->query("SELECT username, level, gender, daysold, pw_reward FROM users WHERE player_week > 0"); $r=$db->fetch_row($q); $qn=$db->query("SELECT itmname FROM items where itmid='{$r['pw_reward']}'"); $n=$db->fetch_row($qn); $item=($n['itmname']); if($r['display_pic']) { $pic= '[img='.$r['display_pic'].']'; } else { $pic= "[img=mobster.jpg]"; } echo ' <p class="left">'.$r['username'].'</p> '.$pic.' Level: '.$r['level'].' Gender: '.$r['gender'].' Days Old: '.$r['daysold'].' Rewarded With: 10 Donator Days & '.$item.' </p> '; print "<p class='left'> You too can be chosen for Player of the Week. There is nothing special that you have to do other than stay active, and have fun playing the game. Players are chosen randomly out of everyone that is active and not in fed each week and the person chosen will receive a reward when they are chosen. </p>"; print "</td><td colspan=2>$content</td></tr></table>"; $h->endpage(); ?>
  19. Re: [mccodeV2] Donations page Elite this looks good, should items be a drop down box to make it easier?
  20. Re: [mccode V2] Rate User['s] how would you display the total number of votes, and how would display it if the user was going negative?
  21. Re: [mccode] Cityname in Mainmenu It hard to believe the simplest things make such a big difference. This rocks.
  22. Re: [Paid mod requests] Very advanced lottery and streets [Paid mod requests] in free mods are both of those (or similar) do a search
  23. Re: [mccode] [TGM] Delete Gang Option [TGM] this is what i tried, but it did not work:   add: case "delete": gang_staff_delete(); break;   add:   [url='yourgang.php?action=staff&act2=delete']Delete Gang [/url]   add:   function gang_staff_delete() $getpre = sprintf("SELECT gangPRESIDENT FROM gangs WHERE gangid = '%u' ", ($ir['userid'])); $dopre = mysql_query($getpre); $pre = mysql_fetch_array($dopre); if($pre['gangPRESIDENT'] != $ir['gang']) { echo "You are not the president. [url='index.php']> Back[/url]"; $h->endpage(); exit; } $do1 = sprintf("DELETE FROM gangwars WHERE warDECLARER = '%u' OR warDECLARED = '%u' ", ($ir['gang']), ($ir['gang'])); $do2 = sprintf("DELETE FROM gangs WHERE gangPRESIDENT = '%u' ", ($ir['userid'])); $do3 = sprintf("UPDATE users SET gang = 0 WHERE gang = '%u' ", ($ir['gang'])); mysql_query($do1); mysql_query($do2); mysql_query($do3); echo "Your gang has been deleted. [url='yourgang.php']> Back[/url]"; } } }   I was hoping it would be that easy...
  24. Re: [mccodes V1'2] gang levels lol, duh...sorry!
  25. Re: [mccode] [TGM] Delete Gang Option [TGM] it's saying my guy is not the president....even though he is the president :?
×
×
  • Create New...