Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    May 2008
    Posts
    58
    Thanks
    3
    Thanked 0 Times in 0 Posts

    hoe= planting= starting to grow= crop

    how do i make a script so that i need a hoe in order to plant my seeds and once there planted theres a time on how long they take to start growing and the time could be either 1 day through 3 days and then once there done we get a crop of either 1 through 20 of the crop....how would i do something like that?

    thxs for any help!

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    how do i make a script so that i need a hoe in order to plant my seeds and once there planted theres a time on how long they take to start growing and the time could be either 1 day through 3 days and then once there done we get a crop of either 1 through 20 of the crop....how would i do something like that?
    I'll take a stab at this one..

    PHP Code:
    <?php

    $seedPlanted 
    plantSeeds($doIHaveAHoe);

    if (
    $timePlanted >= "1 through 3 days") {
        
    $seedIsGrowing true;
    }

    if (
    $timePlanted >= $timeToFinishGrowing && $seedIsGrowing) {
        
    $crop $crop rand(1,20);
    }

    function 
    plantSeeds($IHaveAHoe) {
        if (
    $IHaveAHoe) {
            
    $seedIsPlanted true;
        }
        return 
    $seedIsPlanted;
    }
    ?>
    If you end up using this, be sure to credit me for the code!

  • #3
    New Coder
    Join Date
    May 2008
    Posts
    58
    Thanks
    3
    Thanked 0 Times in 0 Posts
    when i use it the page is blank..now what? lol

  • #4
    Regular Coder
    Join Date
    Dec 2006
    Posts
    166
    Thanks
    9
    Thanked 4 Times in 4 Posts
    What exactly are you trying to get it to output?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •