...

View Full Version : hoe= planting= starting to grow= crop



tylerbe992
12-10-2008, 11:02 PM
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!

Fumigator
12-11-2008, 12:50 AM
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

$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! :thumbsup:

tylerbe992
12-11-2008, 01:56 AM
when i use it the page is blank..now what? lol

194673
12-11-2008, 10:50 AM
What exactly are you trying to get it to output?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum