GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Get laid tonight with this amazing PHP script! (https://gfy.com/showthread.php?t=739517)

fetishblog 06-04-2007 05:39 PM

Get laid tonight with this amazing PHP script!
 
Can't get laid any other way? Try this amazing PHP script and have sex tonight! :thumbsup

Code:

<?php
function findsex(){
  $human = new human;
  $tonight = new night;
  $excuses = array('Headache','Migraine','Not Today','Menstration');
  $num_girl = random(0,count($human->girl));
  if ($human->girl[$num_girl]=="stupid")
  {
    $tonight->sex = true;
  }
  else
  {
    $tonight->sex = undefined;
    $result=trygetsex();
    if ($result==true){
      $tonight->sex = true;
    }
    else
    {
      $tonight->sex = false;
      $number = random(0,count($excuses));
      echo $excuses[$number]."<br/>";
    }
  }
  if($tonight->sex = true)
    echo "<b>Operation Successful!</b>";
    return 0;
  else
    findsex();
}
?>


The Sultan Of Smut 06-04-2007 05:45 PM

Doesn't work I'm still sitting here lonely staring at the parse error :(

WiredGuy 06-04-2007 05:49 PM

I'm gonna modify that random number generator to be between 3 and 20 and have a great time tonight!
WG

munki 06-04-2007 05:50 PM

ROFLMAO

http://www.austinchronicle.com/binar..._did_there.jpg

tiger 06-04-2007 05:59 PM

HA, nice coding.

fetishblog 06-04-2007 06:08 PM

I fixed the parse error!

Code:

<?php
function findsex() {
  $human = new human;
  $tonight = new night;
  $excuses = array('Headache','Migraine','Not Today','Menstration');
  $num_girl = random(0,count($human->girl));
  if ($human->girl[$num_girl]=="stupid")
  {
    $tonight->sex = true;
  }
  else
  {
    $tonight->sex = undefined;
    $result=trygetsex();
    if ($result==true){
      $tonight->sex = true;
    }
    else
    {
      $tonight->sex = false;
      $number = random(0,count($excuses));
      echo $excuses[$number]."<br/>";
    }
  }
  if ($tonight->sex = true) {
    echo "<b>Operation Successful!</b>";
    return 0;
  }
  else
    findsex();
}
?>

If all you get is a blank screen, then you're not getting lucky. :)

munki 06-04-2007 06:11 PM

Quote:

Originally Posted by fetishblog (Post 12544933)
I fixed the parse error!

Code:

<?php
function findsex() {
  $human = new human;
  $tonight = new night;
  $excuses = array('Headache','Migraine','Not Today','Menstration');
  $num_girl = random(0,count($human->girl));
  if ($human->girl[$num_girl]=="stupid")
  {
    $tonight->sex = true;
  }
  else
  {
    $tonight->sex = undefined;
    $result=trygetsex();
    if ($result==true){
      $tonight->sex = true;
    }
    else
    {
      $tonight->sex = false;
      $number = random(0,count($excuses));
      echo $excuses[$number]."<br/>";
    }
  }
  if ($tonight->sex = true) {
    echo "<b>Operation Successful!</b>";
    return 0;
  }
  else
    findsex();
}
?>

If all you get is a blank screen, then you're not getting lucky. :)

:1orglaugh:1orglaugh

ucv.karl 06-04-2007 06:35 PM

I think I am going to wait till version 2.0 comes out.

That trygetsex() function could create issues.

Here's a temporary fix.


Code:

<?php
function findsex() {
  $human = new human;
  $tonight = new night;
  $excuses = array('Headache','Migraine','Not Today','Menstration');
  $num_girl = random(0,count($human->girl));
  if ($human->girl[$num_girl]=="stupid")
  {
    $tonight->sex = true;
  }
  elseif($human->man)
  {
    $tonight->sex = false;
  }
  else
  {
    $tonight->sex = undefined;
    $result=trygetsex();
    if ($result==true){
      $tonight->sex = true;
    }
    else
    {
      $tonight->sex = false;
      $number = random(0,count($excuses));
      echo $excuses[$number]."<br/>";
    }
  }
  if ($tonight->sex = true) {
    echo "<b>Operation Successful!</b>";
    return 0;
  }
  else
    findsex();
}
?>


k0nr4d 06-04-2007 06:37 PM

Quote:

Originally Posted by The Sultan Of Smut (Post 12544829)
Doesn't work I'm still sitting here lonely staring at the parse error :(

:1orglaugh:1orglaugh:1orglaugh

fetishblog 06-04-2007 07:15 PM

Nice mod, thanks. ;)


All times are GMT -7. The time now is 10:21 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123