Blockland Forums > Modification Help
Is there something wrong with this?
(1/1)
Pew446:
I have this script:

 
--- Code: --- switch(%obj.client.mode){
 
  case "up":
  dobrickup(%name, %col);
  break;
 
  case "down":
  dobrickdown(%name, %col);
  break;
 
  default:
  dobrickup(%name, %col);
  break;
  }
--- End code ---

Where %obj.client.mode == down, but it always does up? Is there something I am doing wrong?
Headcrab Zombie:
use switch$ instead of switch
Pew446:
Oh yeah, $ for stings. Thanks much!
Navigation
Message Index

Go to full version