Jump to content
MakeWebGames

fbiss

Members
  • Posts

    148
  • Joined

  • Last visited

Everything posted by fbiss

  1. You would also have to find and remove every .php from links on your game as well, wouldnt you?
  2. fbiss

    Google Wave

    Anybody out there have a google wave account? I have one, and would like to add somebody to try it out. Send me your account email if insterested And before you ask... no i do not have any invites.
  3. That wont work in a cron danny This is untested, but in your hour cron try     $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET us.agility=us.agility-2 WHERE us.agility > 1 AND u.smoking > 0");   of course u can change the agility to a different stat if you want
  4. you still do not have the correct Step 2 You have $stat=$statnames(''. $_POST['statselect'] .'');   not $stat=$statnames[''.$_POST['statselect'].''];
  5. Post what your code looks like now
  6. Step 2 updated
  7. The changes i mentioned in my post, should have been applied to your latest post, not Immortalthugs post
  8. Skalman, Looking at your recent update, Here are errors that jumped out at me. Step 1. Find:   $_POST['statselect']=abs((int) $_POST['statselect']);   If you look at your form, the values you are passing in the $_POST['statselect'] are strings (Strength, Agility, etc..) not numbers. The use of abs and int are number functions to validate that the number is a positive whole number. As this variable wont be used in the query, we do not need to validate it. So Remove the line entirely. -------------------------------------------------------- Step 2. FInd:   $stat=$statnames($_POST['statselect']);   You are trying to use the $statnames array as a function, and not as an array.. ie $statnames() should be $statnames[]. The reason that you are submitting $_POST['statselect'] in the form value is to find the correct array key in the $statnames array. Replace the line with:   $stat=$statnames[''.$_POST['statselect'].''];   -------------------------------------------------------- Step 3 Find:   if($_POST['statselect']) {   We want to be sure that the $_POST['statselect'] is indeed in the $statnames array Replace with:   if($_POST['statselect'] && array_key_exists(''.$_POST['statselect'].'',$statnames)) {   -------------------------------------------------------- Step 4. Find:   die("This stat cannot be withdrawn."); } {   You forgot the else Replace with:   die("This stat cannot be withdrawn."); } else {   -------------------------------------------------------- Step 5. Find:   $withdrawn=($stat/5)*100;   Since $stat is derived from a string this will not work, you cannot use math functions on a string. however you can use the $stat as the array key in your $ir array. By Replacing it with:   $withdrawn=($ir[''.$stat.'']/5)*100;   But, you may want to change your math, as this will surely put someone in the negative for the chosen stat. If you are trying to subtract a certain percent, i suggest replacing it with this Suggestion:   $wdperc= 20; //Change to the percent that you with like to withdrawl, EX. 20 would be 20% $withdrawn=$ir[''.$stat.'']*($wdperc/100);   -------------------------------------------------------- Step 6. You use the variable $statselect , but it is not defined anywhere. Find ALL $statselect and replace them with $stat ------------------------------------------------------- Step 7. Find:   $ir['stat']-=$_POST['withdrawn']; $ir[$stat]-=$withdrawn;   Replace with:   $ir[''.$stat.'']-=$withdrawn;
  9. I believe your issue is with the (int) Your $ir['exp_needed'] is calculating out to more then 2147483647 which is small ints limit
  10. Re: Referral Hall Of Fame? Once again.. Game Modifications category is not for requesting mods or help fixing errors ***Topic moved***
  11. Re: Can someone help Feky, you have been warned before. This is not the proper section to request mods or ask for help.
  12. Re: Dreaming Out Loud plintu and Strats are correct, this is not the correct board to request mods. This category is for posting of new mods that u are providing to other people. put people cant seem to follow simple rules.   *** moving this topic***
  13. fbiss

    jobpoints bug

    Re: jobpoints bug This is not a New game modification, so dont post this here
  14. Re: +10 for who ever can fix this This is not a Game modification. Please be more careful when posting next time. ****Moving topic****
  15. Re: Streets mc2 mod This is not a Game modification. Please be more careful when posting next time. ****Moving topic****
  16. Re: Design mod This is not a Game modification. Please be more careful when posting next time. ****Moving topic****
  17. Re: Help !!URGENT!! This is not a Game modification. Please be more careful when posting next time. ****Moving topic****
  18. Re: Looking for a Referal Mod ... Markwick , this category is for posting new mods, NOT Requesting mods. Please follow the board directions when posting here.
  19. Re: Query help please Give this a shot   <?php include "globals.php"; if($ir['user_level'] != 2) { die("Under construction"); } if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed when in jail or hospital."); } if($ir['use'] == 1) { die("You've been tested enough for today. Anymore tests, and you'll die. Come back when you're fit."); } $q = $db->query("SELECT * FROM `inventory` WHERE `inv_itmid` = 95 AND `inv_userid` = $userid"); if($db->num_rows($q) > 0) { print "You have entered Area 1 of the research facility. You volunteer yourself to be used to test vacinations and medication for the virus. You were given £5,000 for testing the medication."; $db->query("UPDATE users SET money=money+5000, use=1, hospital=hospital+35,hospreason='Tested new medication for money' WHERE userid=$userid"); item_remove($userid, 95, 1); } else { die("You need a Research Facility Area 1 Key Card before you can enter Area 1."); } $h->endpage(); ?>
  20. Re: Query help please   it would be...   SELECT * FROM `inventory` WHERE `inv_itmid` = 95 AND `inv_userid` = `$userid`
  21. Re: Help Needed with Monorail pm me with your code for that page.
  22. Re: Mailbox popup... in header??? In my opinion I think it would be annoying as hell if u didn't want to read your email right away that you got a pop up on every page click. Especially if you are in the middle of attacking somebody.
  23. Re: Help Needed with Monorail without looking to much into it.. change: mysql_query("UPDATE users SET money=money+$r[cityprice] WHERE userid=$r[cityowner]");   to   mysql_query("UPDATE users SET money=money+{$r['cityprice']} WHERE userid={$r['cityowner']}");
  24. Re: New Here and beta Game Screen Shot Thank you all for the compliments :-D Now that work is getting a bit less crazy, i have been spending alot more time on it, hoping if all goes well to open in the next month or so.
  25. Re: New Here and beta Game Screen Shot   Its still beta.. :wink: the registration is closed most of the time.
×
×
  • Create New...