Because you don't know how to use it. That is why it doesn't work.
Here is the correct format which you should be using.
<?php
//If you need to include files do it here
if (isset($_GET["do"])) { $do = explode(":",$_GET["do"]);
switch($do[0]) { case 'bait': bait(); break;
case 'bait2': bait2(); break; case 'fishing': fishing(); break;
} }
function bait() { //All your beginning crap here
$page .= 'Welcome to the Bait Shop. Need Bait? I have some wonderful stuff here.'; $page .= 'Or you can return to <a href="index.php">town</a>';
}
function bait2() { //BLAH BLAH BLAH }
function fishing() { // Beginning crap here again
$page .= 'Welcome to the fishing hole. You seem to have bait! so select a spot to fish.';
}
_________________________
MasterFayt - Amara 5 - Manas - Banar
|