Jump to content
MakeWebGames

AlabamaHit

Members
  • Posts

    1,308
  • Joined

  • Last visited

Everything posted by AlabamaHit

  1. Re: Need Help With Items And Create Or Error :-( redo your query......your not giving values to everyting....thats very easy to see man......
  2. Re: [Request] PHP Gamer if you do please pm me it.....or post it here.....their might be others that would like to get it...
  3. Re: [Request] PHP Gamer bumpdy bump
  4. Re: Changing a mailbox feature just add mail_old to your mail table. make it add a day every day in the crons and let it delete the mail automatically and completely remove the delete features. that is what i did in my old game. The users could not delete mail. but the mail was deleted automatically every 10 days
  5. Re: OC help, not working I'm sorry for this insult then...   If your to stupid to use a "Search Feature"... How the hell you going to run a game? Just delete the codes off that free host, and move on......
  6. Re: Question for all game owners i once had apage with a google ad on it...but Google Suspended my account. Come to find out. One or 2 players where clicking eh hell out of the same ad (50+ times)... Just be carefull with it, it can cost you your google account, i mailed google as well once you lose it ...no gettnig it back.
  7. Re: OC help, not working Please use the search...youare the 3 rd person to ask this in 2 days...
  8. Re: V2 house cost cap you have to chage in the estate page to i think
  9. Re: [v2] NPC item reward   $npcs=array(); if ($r['userid']==80) { print"You beat the Evil Santa and steal his Santa's Rifle."; $db->query("INSERT INTO inventory VALUES('',32,$userid,1)"); $db->query("INSERT INTO challengesbeaten VALUES($userid, {$r['userid']})"); } if($r['user_level']==0) { $q=$db->query("SELECT * FROM challengebots WHERE cb_npcid={$r['userid']}"); if ($db->num_rows($q)) { $cb=$db->fetch_row($q); $qk=$db->query("SELECT * FROM challengesbeaten WHERE userid=$userid AND npcid={$r['userid']}"); if(!$db->num_rows($qk)) { $m=$cb['cb_money']; $db->query("UPDATE users SET money=money+$m WHERE userid=$userid"); print " You gained \$$m for beating the challenge bot {$r['username']}"; $db->query("INSERT INTO challengesbeaten VALUES($userid, {$r['userid']})"); } } else { print "You beat Mr. non-existant!"; } } $h->endpage(); ?>
  10. Re: [v2] NPC item reward Try this.   $npcs=array( ); if($r['user_level']==0) { $q=$db->query("SELECT * FROM challengebots WHERE cb_npcid={$r['userid']}"); if ($db->num_rows($q)) { $cb=$db->fetch_row($q); $qk=$db->query("SELECT * FROM challengesbeaten WHERE userid=$userid AND npcid={$r['userid']}"); if(!$db->num_rows($qk)) { $m=$cb['cb_money']; $db->query("UPDATE users SET money=money+$m WHERE userid=$userid"); print " You gained \$$m for beating the challenge bot {$r['username']}"; $db->query("INSERT INTO challengesbeaten VALUES($userid, {$r['userid']})"); } else if { if ($r['userid']==80) print"You beat the Evil Santa and steal his Santa's Rifle."; $db->query("INSERT INTO inventory VALUES('',32,$userid,1)"); $db->query("INSERT INTO challengesbeaten VALUES($userid, {$r['userid']})"); } } } else { print "You beat Mr. non-existant!"; } } $h->endpage(); ?>
  11. Re: x level what?
  12. Re: [v2] Adding exact % energy lol @ Zero.. I said the same thing early in post.. They will not always be exact 10% though...Like Luke said.
  13. Re: [v2] Adding exact % energy   $db->query("UPDATE users SET energy=maxenergy/10 WHERE userid=$userid"); $db->query("UPDATE users SET energy=maxenergy WHERE energy > maxenergy");   Maybe?
  14. Re: Cron's not working ok, if its in the cpanel correct. with the right key....Thne you need to contact your host. They are blocking for some reason.
  15. Re: Cron's not working There are only a few reasons why crons wont work.. YOU messed up. key is wrong. not setup in cron tab Host dont allow curl host dont allow crons All explained in the forums...
  16. Re: Cron's not working omfg........search the forums before you post..............
  17. Re: [mccode] Giving Item To All Users lol @ Magictallguy You know that mysql_fetch_object works just fine on v2, lol :-P What yo uposted is better with thje sprintf though :wink:
  18. Re: Internet Explorer Check this out lots of examples :evil: http://www.google.com/search?q=website+standards&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
  19. Re: Bit stuck no urgency, if you mean you want BOTH donator and NON doantors to see it... find that   if($ir['doantordays']) { print" lbaljsdiofjjioasdf"; }   delete it.... remove it from the if($ir['donatordays']) down to the }
  20. Re: Internet Explorer idk what parts he is refering to, most common are cmarket, and forums. Search here. you wil find a fix. 8-)
  21. Re: Giving Item To All Users [FREE]     $name = mysql_fetch_object(mysql_query("SELECT itmname FROM items WHERE itmid = ".$_POST['item']." ")); event_add($r['userid'],"The population has just been given item $name->itmname, Click [url='inventory.php']Here[/url] to check.",$c);   This is untested.....
  22. Re: [mccode] [TGM] Delete Gang Option [TGM] Windows Program I use Edit Plus v2...(Only when i ahve to, lol..Prefer linux.) Linux I use Blue Fish :P V1 disbandgang.php   <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $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='index.php']> Back[/url]"; $h->endpage(); ?>   douwanna.php   <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); echo " Are you sure you want to delete your gang? Once deleted all items, money, and crystals left in will be gone forever. Make sure you get them out before deleting. <form action='disbandgang.php' method='post' name='delete'> <input name=sure type='submit' value='Delete Gang'> </form>"; $h->endpage(); ?>   -------------------------------------------------------- V2 disbandgang.php   <?php require "globals.php"; $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='index.php']> Back[/url]"; $h->endpage(); ?>   douwanna.php   <?php require "globals.php"; echo " Are you sure you want to delete your gang? Once deleted all items, money, and crystals left in will be gone forever. Make sure you get them out before deleting. <form action='disbandgang.php' method='post' name='delete'> <input name=sure type='submit' value='Delete Gang'> </form>"; $h->endpage(); ?>   Put a link to the douwanna.php in your yourgang.php
  23. Re: Help No, leave that in there, lol...That sets standards...(makes game look right in IE and FF)...Long story short, lol... glad to hear you got it working...Sorry I should have said that replace probably would have some exceptions.
  24. Re: Help did you leave <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> in your header?
  25. Re: Help if it only changed the ' to ' then use your texted editor...Reaplace all....' to ' I hope this works...sorry to hear that happend..
×
×
  • Create New...