Thread: Chat System
View Single Post
  #9  
Old 12-24-2011, 09:55 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by Gunderak View Post
Are you talking about the serverside and clientside checks?
For triggering things?
I'm talking about:

PHP Code:
if(params[0] == something){

}

if(
params[0] == somethingelse){


Which occurs both serverside and clientside.
If the parameter is something, there is then no need to check if it is somethingelse. You should either use a switch statement or a return; within the bracket.
Reply With Quote