View Single Post
  #6  
Old 07-05-2009, 10:09 AM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
Quote:
Originally Posted by cbk1994 View Post
This just saves work, and makes it easier to change things later on. If that method confuses you, use the first one. Remember you're going to have to change the variables around to fit your server (e.g. clientr.money, clientr.fish.name)
Lovely post, I'd do my selling of the fish differently though

PHP Code:
temp.fish = {
  
"Salmon"10,
  
"Trout"15,
  
"Yada"5
};

temp.saleamount temp.fish.index( (selling fish name heresent from the triggeraction) ) + 1
Reply With Quote