View Single Post
  #3  
Old 05-15-2012, 11:22 PM
Fysez Fysez is offline
Banned
Join Date: Apr 2012
Posts: 89
Fysez has a little shameless behaviour in the past
Quote:
Originally Posted by callimuc View Post
Use the == only in the if statement. While setting the value just use = . So this should work

PHP Code:
//#CLIENTSIDE
function onWeaponFired() {
  if (
this.wearing == false) {
    
this.wearing true;
    
replaceani("idle""gani");
    
replaceani("walk""gani2");
  }
  else if (
this.wearing == true) {
    
this.wearing false;
    
replaceani("gani""idle");
    
replaceani("gani2""walk");
  }

Doesn't work either.
Reply With Quote