Quote:
Originally Posted by cbk1994
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 here, sent from the triggeraction) ) + 1;