Thread Rating:
  • 7 Vote(s) - 3.29 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quotes (Forum, MSN, ICQ, AIM, YIM, other)
Some hilarious codes found on pastebin:
To find boolean:
Code:
public bool IsTrue(bool b)
{
  if (b == true)
  {
    return true;
  }
  return false;
}

Get random number:
Code:
public int getRandomNumber() {
    return 5;
}
Code:
int getRandomize(int randMax)
{
  srand ( time(NULL) );
  int randNum; = rand() % randMax + 1;
  return 2;
}

A new for loop:
Code:
for ($i=0 ; $i<3 ; $i++) {
  switch($i) {
    case 1:
  // deleted code here
  break;
    case 2:
  // deleted code here
  break;;
    case 3:
  // deleted code here
  break;
  }
}
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by:


Messages In This Thread
Trick On Az - by blow_fly98 - 04-04-2010, 10:50 AM
RE: Quotes (Forum, MSN, ICQ, AIM, YIM, other) - by A-Man - 10-18-2012, 10:48 AM



Users browsing this thread: 8 Guest(s)