View Single Post
  #4  
Old 12-02-2010, 07:27 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Well just make a central function that they all use and call the right function based on the object passed.

Usage:

findweapon("-GUI").triggerGUI(Jerry);

PHP Code:
public function triggerGUI(obj) {
  if (
obj == Jerry) {
    
DoStuff();
  } else {
    
DoOtherStuff();
  }

__________________
Quote:
Reply With Quote