Ok so i found this thread
http://twhl.info/articulator.php?art=31and i followed it to create my custom weapon so i have a smg and a rifle, now i reused the half life 1 smg and improved accuracy and damage to make into rifle and this new weapon into smg. now all i done is replace the m16 parts with smg1 and my hl dll compiles properly but cl dll doesnt
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(5) : error C2504: 'CBasePlayerWeapon' : base class undefined
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(10) : error C2061: syntax error : identifier 'ItemInfo'
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(11) : error C2061: syntax error : identifier 'CBasePlayer'
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(14) : error C2146: syntax error : missing ';' before identifier 'Deploy'
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(14) : error C2433: 'CSMG1::BOOL' : 'virtual' not permitted on data declarations
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(14) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(14) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(14) : warning C4183: 'Deploy': missing return type; assumed to be a member function returning 'int'
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(18) : error C2146: syntax error : missing ';' before identifier 'UseDecrement'
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(18) : error C2433: 'CSMG1::BOOL' : 'virtual' not permitted on data declarations
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(18) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(18) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(18) : warning C4183: 'UseDecrement': missing return type; assumed to be a member function returning 'int'
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(9) : error C2065: 'SMG1_SLOT' : undeclared identifier
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(26) : error C2504: 'CBasePlayerAmmo' : base class undefined
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(29) : error C2146: syntax error : missing ';' before identifier 'AddAmmo'
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(29) : error C2433: 'CSMG1AmmoClip::BOOL' : 'virtual' not permitted on data declarations
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(29) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(29) : error C2061: syntax error : identifier 'CBaseEntity'
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(29) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\administrator\desktop\hl sdk\src_dll\cl_dll\smg.h(29) : warning C4183: 'AddAmmo': missing return type; assumed to be a member function returning 'int'
the SMG.h is same in both directories, for cl dll and the hl dll so it is little weird that it works in 1 file but not other. i went thru it 3 times to see if any typos or anything but nothing
if you can help me out, thanks!