View Single Post
  #1  
Old 06-04-2010, 01:02 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
setting a var not working

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.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.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote