For the life of me I dont know why. The chat "caught one" comes up, but nothing after that.
PHP Code:
function onActionServerSide() {
if (params[0] == "caughtFish") {
setani("fishing","fish.gif");
player.chat = "CAUGHT ONE!";
temp.fishtype = {"Whiting","Trout","Bass","Shark","Cod","Cuddlefish","Hardhead"};
temp.i = random(0,6);
temp.var = clientr.fish.(fishtype[i]);
var++;
//makevar("clientr.fish".fishtype[i]);
//clientr.fish1 = clientr.fish1 ++;
}
if (params[0] == "noFish") {
setani("fishing",NULL);
}
if (params[0] == "takeBait") {
clientr.fworms --;
}
}
i also commented out in the code what I've already tried.