Thread: Death Clock
View Single Post
  #5  
Old 06-10-2007, 06:10 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Twinny View Post
To save lines. Doing this will drastically reduce the size of your current script.

Also, instead of doing
PHP Code:
if (condition)
  
statement;
if (
condition)
  
statement;
if (
condition)
  
statement
You should get into the habit of using
PHP Code:
if (condition)
  
statement
else if (condition)
  
statement
else
  
statement 
Actually, It's only really necessary if the following checks should only be possible when the previous are not true. Should probably use a switch in this case.
Reply With Quote