[Resolved] Why isn't this working?

4 replies [Last post]
Raxz
Offline
Joined: Sep 2011
Posts:

Lightning Gun { //Heal Gun or Earthquake Gun
 
    if ( $xp_friendlyFire == 1 ) {
 
        Cycle = 100;
        Knockback = Damage = -1; //Needs friendly fire on to work.
 
        else if ( $xp_friendlyFire == 0 ) {
 
            Cycle = 250;
            Knockback = -1;
            Damage = 0;
            Splash Damage = 12;
            Splash Knockback 0;
            Radius = 500;
        }
    }
 
}

EDIT: Nevermind, fixed it.

mow Q [EN]
Offline
Joined: Nov 2003
Posts:
Re: Why isn't this working?

so, and how?

BAC**TRB
trb's picture
Offline
Joined: Jul 2010
Posts:
HU Hungary
Re: Why isn't this working?

gg

silence is better than bullshit

epsiplayer
THE ONE AND ONLY
intact-epsilon's picture
Offline
Joined: Dec 2006
Posts:
Re: Why isn't this working?

he forgot something before "else if" :

Quote:
} else if ( $xp_friendlyFire == 0 ) {

+ in the end one } must be removed

anyway i'll mark it as resolved.
_________
epsislow


FranK
frank's picture
Offline
Joined: Jan 2011
Posts:
Re: [Resolved] Why isn't this working?

looks like a good idea.. Its great how things move forward all the time.

"Beauty can cover a multitude of sins. But underneath, we all look exactly the same."

Frank Breitkopf :- no way out