Jump to content
MakeWebGames

AlabamaHit

Members
  • Posts

    1,308
  • Joined

  • Last visited

Everything posted by AlabamaHit

  1. Re: Database FATAL error if you changed server...BUT keep your files.....like moved your files from the older server to new.. Make sure you chnage the information in the config.php to match new server.
  2. Re: [mccode v2] Itempedia Yeah, i have gotten yelled at becuase when i see it, i tend to post in there little parade and let everyone know....lol...heck one of them i posted a 20 line or so...code that he waas selling for $15, lol.....seriously it was like 20 lines or so, i came up with to do the exact same thing they was selling for $15.......it took me 30 seconds to think of, and 1min. to write, i have nothing against people making money...but make it when its worth it, don't screw people, if the mod or code is that simeple don't charge for it...
  3. Re: [mccode] Cityname in Mainmenu You can use it how eer you want, lol.....But djkanna way is slower....and i would say yall like it better cause yall are use to seeing it...lol....BUT...the speeds wouldnt be noticable cause its such a small table.... No disrespect and not trying to start a fight on this....So please don't take it that way.
  4. Re: [mccode v2] Itempedia just posting to bring it to the front...cause i see people trying sell this mod when its super simple and FREE.....
  5. Re: [Request] PHP Gamer :?
  6. Re: Nerve Refill for crystal temple No problem...
  7. Re: Nerve Refill for crystal temple ....is it full? if yoru brave does not equal the maxbrave then it shouldnt say that.
  8. Re: Nerve Refill for crystal temple   What would you like to spend your points on? [url='crystaltemple.php?spend=brefill']Brave Refill - {$set['ct_refillprice']} points[/url] [url='crystaltemple.php?spend=refill']Energy Refill - {$set['ct_refillprice']} points[/url] [url='crystaltemple.php?spend=money']Money - \$".number_format($set['ct_moneypercrys'])." per point[/url] "; } else { if($_GET['spend'] == 'brefill') { if($ir['crystals'] <$set['ct_refillprice']) { print "You don't have enough points!"; } else if($ir['brave'] == $ir['maxbrave']) { print "You already have full Brave."; } else { $db->query("UPDATE users SET brave=maxbrave,crystals=crystals-{$set['ct_refillprice']} WHERE userid=$userid"); print "You have paid {$set['ct_refillprice']}points to refill your Brave bar."; } } else if($_GET['spend'] == 'refill') { if($ir['crystals'] <$set['ct_refillprice']) { print "You don't have enough points!"; } else if($ir['energy'] == $ir['maxenergy']) { print "You already have full Energy."; } else { $db->query("UPDATE users SET energy=maxenergy,crystals=crystals-{$set['ct_refillprice']} WHERE userid=$userid"); print "You have paid {$set['ct_refillprice']}points to refill your Energy bar."; } } else if($_GET['spend'] == 'IQ') { print "Type in the amount of crystals you want to swap for IQ. You have [b]{$ir['crystals']}[/b] crystals. One crystal = {$set['ct_iqpercrys']} IQ.<form action='crystaltemple.php?spend=IQ2' method='post'><input type='text' name='crystals' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'IQ2') { $_POST['crystals']=(int) $_POST['crystals']; if($_POST['crystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { print "Error, you either do not have enough points or did not fill out the form. [url='crystaltemple.php?spend=IQ']Back[/url]"; } else { $iqgain=$_POST['crystals']*$set['ct_iqpercrys']; $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']} WHERE userid=$userid"); $db->query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid"); print "You traded {$_POST['crystals']} crystals for $iqgain IQ."; } } else if($_GET['spend'] == 'money') { print "Type in the amount of points you want to swap for money. You have [b]{$ir['crystals']}[/b] points. One crystal = \$".number_format($set['ct_moneypercrys']).".<form action='crystaltemple.php?spend=money2' method='post'><input type='text' name='crystals' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'money2') { $_POST['crystals']=(int) $_POST['crystals']; if($_POST['crystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { print "Error, you either do not have enough points or did not fill out the form. [url='crystaltemple.php?spend=money']Back[/url]"; } else { $iqgain=$_POST['crystals']*$set['ct_moneypercrys']; $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']},money=money+$iqgain WHERE userid=$userid"); print "You traded {$_POST['crystals']} points for \$".number_format($iqgain)."."; } } } $h->endpage(); ?>   Something like that?
  9. Re: Nerve Refill for crystal temple It seems right......Its saying you have full energy all the time?
  10. Re: [mccode] Cityname in Mainmenu   Don't man.....The smallest things in the world are the ones that are overlooked...... :wink:
  11. Re: Change Explore to City Name... Yes, i was bored, lol... Future reference for everyone.. http://criminalexistence.com/ceforums/i ... ic=27229.0
  12. Ok....It honestly never crossed my mind that something so simple would be asked....But, this has been asked....So I guess, I will add it here to make is where others can use it.................???? All this does is changes in the Explore to the City Name of the sure.in the Main Menu (The menu on the left) lol........   OPEN: mainmenu.php FIND:   global $db,$c,$ir, $set;   ADD AFTER:   $city = mysql_fetch_object(mysql_query("SELECT cityname FROM cities WHERE cityid = ".$ir['location']." "));   NOW FIND:   [url='explore.php']Explore[/url]   CHANGE TO:   [url='explore.php']$city->cityname[/url]   Well....if ya like it...+1 me....even though I feel silly as hell posting something this simple, lol.   Oh yeah......YES this works on Lite, Version 1, AND Version 2
  13. Re: Change Explore to City Name... No problem...lol...
  14. Re: Change Explore to City Name... same code......   $city=mysql_fetch_object(mysql_query("SELECT cityname FROM cities WHERE cityid = ".$ir['location']." ")); [url='explore.php']$city->cityname[/url]   No thats not 100% right......you will have to make sure you don't put the query in an echo or print...but I really hope you know that much...
  15. Re: Change Explore to City Name... I think you mean you want it to say the city name they are in when they click explore? If so..   $city=mysql_fetch_object(mysql_query("SELECT cityname FROM cities WHERE cityid = ".$ir['location']." "));   to display it you use...   $name->cityname
  16. Re: No cron ? you can run it without crons. (to an extent)... Liek you can easliy get rid of the minute cron...which i know alot fo peole that have....but i se nothying wrong with the other crons.... Short answer... Yes its possible...
  17. Re: User Defined DPs Auto Crediting <input type="hidden" name="no_shipping" value="1"> If im not mistaken...that line is the quanity of the one they recive...so regardless seems they only get 1...
  18. Re: User Defined DPs Auto Crediting Naw, i was refering to in the IPN file   if($pack==1) { $numLoops = (int)$_POST['quantity']; {   then its updating if the pagck is 1   but your pack is Donator Pack not 1....
  19. Re: User Defined DPs Auto Crediting if($pack==1)   maybe if($pack==DonatorPack)   I say taht cause there is not pack number 1 in your form
  20. Re: [mccode V2} Web Templates Converted nice work man 8-)
  21. Re: User Defined DPs Auto Crediting if thats all your form i see why its not working, you have remvoe the return information...so it has no idea if its cancelled. and if not canceled it dont know what the donator pack name is... look back over the orignal form...you have removed alot of it...i think that might be the problem
  22. Re: Bounty he probalry has yours that has beeen modified by someone else. and they gave it to him or sold it.....but would be its yours if your the one who made that mod...
  23. Re: Some Advise You should have deleted the forums.php, like they said, they can still submit there injectin if the file is there.
  24. Re: Some Advise I don't see how announcement.hp can be "insecure" it don't submit nothing. it shows a list from a table..... If someone hit you they probarly just used some bs forum attack....
  25. Re: [mccode V2] Item Descryption. Nice work there Zero. Ilike that... The game im working on i have a couple places im using a small window like that. Little Javascript can do amazing things :P....oh and to put it in that like you did..wow..very very nice seriously man. I nkow how much work well maybe not work, but agrivation to get it to work, lol....I have it on simple things. Im planning on adding it in places like that. just taking time cause it takes alot, Very big prop to it. Oh, and Prob to Main topic...Very nice Share man.
×
×
  • Create New...