Having errors when compiling.

So I was attempting to bodygroup a model from Gmod.org and when I compiled it, I got an error about an unknown command.


GUIStudioMDL 2.2/Source - © 2007 Neil 'Jed' Jedrzejewski - http://www.wunderboy.org/

Loaded QC file - "C:\Users\Admin\Downloads\Source\3DS Max\Browning M2\mdldecompiler.qc"

Created command line: "C:\Program Files\Steam\steamapps	ehagentguy\sourcesdk\bin\orangebox\bin\studiomdl.exe" -game "c:\program files\steam\steamapps	ehagentguy\half-life 2\hl2" -nop4 -nox360 "C:\Users\Admin\Downloads\Source\3DS Max\Browning M2\mdldecompiler.qc"

qdir:    "c:\users\admin\downloads\source\3ds max\browning m2\"
gamedir: "c:\program files\steam\steamapps	ehagentguy\half-life 2\hl2\"
g_path:  "C:\Users\Admin\Downloads\Source\3DS Max\Browning M2\mdldecompiler.qc"
Building binary model files...
Working on "mdldecompiler.qc"
SMD MODEL C:\Users\Admin\Downloads\Source\3DS Max\Browning M2/50cal.dmx.smd
SMD MODEL C:\Users\Admin\Downloads\Source\3DS Max\Browning M2/50cal_box.smd
SMD MODEL C:\Users\Admin\Downloads\Source\3DS Max\Browning M2/UnknownModelName.smd
SMD MODEL C:\Users\Admin\Downloads\Source\3DS Max\Browning M2/50cal_mount.smd
ERROR: unknown command "weapon""
ERROR: Aborted Processing on 'Browning_M2.mdl'
WARNING: Leaking 1 elements


Also here’s the QC


$cd "C:\Users\Admin\Downloads\Source\3DS Max\Browning M2"
$modelname "Browning_M2.mdl"
$model "studio" "50cal.dmx.smd"
$poseparameter MiniGun_Horizontal -90.00 90.00
$poseparameter MiniGun_Vertical -90.00 90.00
$cdmaterials "models\w_models\50cal\"
// Model uses material "50cal.vmt"
$bodygroup "box"
{
    studio "50cal_box.smd"
    studio "UnknownModelName.smd"
}
$bodygroup "mount"
{
blank
    studio "50cal_mount.smd"
    studio "UnknownModelName.smd
}
$surfaceprop "weapon"
$illumposition -2.888 18.531 21.805
$sequence idle "idle" fps 30.00
$animation mdldecompiler_delta.smd "mdldecompiler_delta.smd" fps 30
$animation a_W_MiniGun_AimMatrix_up_right "a_W_MiniGun_AimMatrix_up_right" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation a_W_MiniGun_AimMatrix_mid_right "a_W_MiniGun_AimMatrix_mid_right" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation a_W_MiniGun_AimMatrix_middown_right "a_W_MiniGun_AimMatrix_middown_right" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation a_W_MiniGun_AimMatrix_down_right "a_W_MiniGun_AimMatrix_down_right" fps 30.000000 subtract mdldecompiler_delta.smd 0

$sequence W_MiniGun_AimMatrix "a_W_MiniGun_AimMatrix_up_right" fps 30.00 {
  blendwidth 21
  blend MiniGun_Horizontal -90.000000 90.000000
  delta
  autoplay
 a_W_MiniGun_AimMatrix_up_right a_W_MiniGun_AimMatrix_up_right a_W_MiniGun_AimMatrix_mid_right a_W_MiniGun_AimMatrix_middown_right a_W_MiniGun_AimMatrix_down_right a_W_MiniGun_AimMatrix_down_right W_MiniGun_AimMatrix W_MiniGun_AimMatrix W_MiniGun_AimMatrix W_MiniGun_AimMatrix W_MiniGun_AimMatrix W_MiniGun_AimMatrix W_MiniGun_AimMatrix W_MiniGun_AimMatrix W_MiniGun_AimMatrix W_MiniGun_AimMatrix W_MiniGun_AimMatrix W_MiniGun_AimMatrix W_MiniGun_AimMatrix W_MiniGun_AimMatrix
}
$collisionmodel "phymodel.smd" {

    $concave
    $mass 15.0
    $inertia 1.00
    $damping 0.00
    $rotdamping 0.00
}


studio "UnknownModelName.smd
Forgot the second "