View Single Post
  #3  
Old 09-08-2011, 10:27 PM
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
You could also use a switch statement instead of multiple ifs as well.

In Give_Button.onAction() you could also just do:

triggerserver("weapon", this.name, temp.item);

Since your parameters on the server-side match up with the ones on the client-side.
__________________
Quote:
Reply With Quote