So...
works perfect, but
throws a "embedded statement cannot be a declaration" error from the
BaseCreature mob = (BaseCreature)from;
PlayerMobile mob = (PlayerMobile)from;
lines...
i tried with { } after the if/else statements but then it just ignored what was in the {}... ?
C#:
public virtual void NewZombie( Mobile from, Zombiex zomb )
{
BaseCreature mob = (BaseCreature)from;
works perfect, but
C#:
public virtual void NewZombie( Mobile from, Zombiex zomb )
{
if ( from is BaseCreature )
BaseCreature mob = (BaseCreature)from;
else if ( from is PlayerMobile )
PlayerMobile mob = (PlayerMobile)from;
else return;
throws a "embedded statement cannot be a declaration" error from the
BaseCreature mob = (BaseCreature)from;
PlayerMobile mob = (PlayerMobile)from;
lines...
i tried with { } after the if/else statements but then it just ignored what was in the {}... ?