Change it to this, you need to declare the variable before using it in the fashion you're using it.
Code:
else if ( !allRequiredSkills )
{
if ( tool != null && !tool.Deleted && tool.UsesRemaining > 0 )
from.SendGump( new CraftGump( from, craftSystem, tool, 1044153 ) );
else
from.SendLocalizedMessage( 1044153 ); // You don't have the required skills to attempt this item.
}
else
{
ConsumeType consumeType;
PlayerMobile plm = (PlayerMobile)from;
if( plm.HalfResourcesRequired == true )
consumeType = ConsumeType.Half;
else
consumeType = ( UseAllRes ? ConsumeType.Half : ConsumeType.All );
int resHue = 0;
int maxAmount = 0;
object message = null;
// Not enough resource to craft it