Jump to content
MakeWebGames

hunter

Members
  • Posts

    37
  • Joined

  • Last visited

    Never

Everything posted by hunter

  1. When someone buys a house where is it store in the sql Im using v1.1
  2. Re: Question about gym file Ty king your a saint! --- but really thanks again
  3. Im trying to make so that when people train they gain more stats per a train $tgain=0; for($i=1;$i<=$_GET['times'] && $ir['energy'] > 0;$i++) { if ($ir['energy'] > 0) { $gain=rand(1,4)/rand(600,705)*rand(600,705)*($ir['will']+20/150); $tgain+=$gain; if ($_GET['train']=="IQ") { $gain/=100; } $ir[$_GET['train']]+=$gain; $egain=$gain/100; $ts=$ir[$_GET['train']]; $st=$_GET['train']; mysql_query("UPDATE userstats SET $st=$st+".$gain." WHERE userid=$userid",$c) or die("UPDATE userstats SET $st=$st+$gain,energy=energy-1,exp=exp+$egain WHERE userid=$userid ".mysql_error()); $wu=(int) (rand(1,3)); if ($ir['will'] >= $wu)   i was told that this line is where to up the stats $gain=rand(1,4)/rand(600,705)*rand(600,705)*($ir['will']+20/150); But stats where about the same can anyone please help thanks
  4. Re: Can someone please help This i changed in the global.php     This is the error   thanks again for any help you can give
  5. Fatal error: Cannot redeclare money_formatter() (previously declared in /home/deeznuts/public_html/global_func.php:8) in /home/public_html/global_func.php on line 8   What cause this kind of error Thanks
  6. Re: Give Item Error Heres the problem were having we add a line in the inventory table and then when trying to send from the admin panel we get the Column count doesn't match value count at row 1 error
  7. Re: coding question When the page is up theres no way to send the item under the info its blank
  8. i having a problem figuring out why i can send out money my my bussiness mod function bank() { global $ir,$c,$userid,$h,$bdata; if($_POST['user']) { $ck=mysql_query("SELECT * FROM users WHERE business={$ir['business']} AND userid={$_POST['user']}",$c); if(mysql_num_rows($ck)== 0) { print "ERROR! Either this user does not exist or they are not in your business."; exit; } $user=(int) $_POST['user']; $cash=(int) $_POST['cash']; $crys=(int) $_POST['crystals']; mysql_query("UPDATE users SET money=money+$cash, crystals=crystals+$crys WHERE userid=$user",$c); mysql_query("UPDATE businesses SET bBANKMONEY=bBANKMONEY-$cash, bBANKCRYSTALS=bBANKCRYSTALS-$crys WHERE bID={$bdata['bID']}",$c); print "\$$cash and $crys Crystals Given to User : $user. >Back "; }     i think its missing like a send feature or what not can anyone help thanks in advance
  9. Re: jail/hosp shoutbox thanks guys worked :-D
  10. Re: jail/hosp shoutbox thank you guys ill try that
  11. Re: jail/hosp shoutbox i copyed all files right and such i get this error Warning: fopen(jailshouts.txt) [function.fopen]: failed to open stream: Permission denied in /home/deeznuts/public_html/jailshout.php on line 21 Warning: fwrite(): supplied argument is not a valid stream resource in /home/deeznuts/public_html/jailshout.php on line 28 Warning: fclose(): supplied argument is not a valid stream resource in /home/deeznuts/public_html/jailshout.php on line 29   Can anyone help?
×
×
  • Create New...