It looks like you aren't #including the header file for CWeaponInfo. 
Once you fix that error the rest should go away.

Cameron Fields wrote:
>  This is probably terribly stupid, but I am new to modding and am trying
> to implement the iron sights found in this tutorial
> (http://developer.valvesoftware.com/wiki/Ironsights) using Visual Studio
> 2005. I basically copy and pasted the what code it provided, studying it to
> see what was going on. When I try to compile I get this error log: 
>
> Compiling...
> weapon_parse.cpp
> d:program files (x86)mymodsrcgamesharedweapon_parse.cpp(42) : error C2653:
> 'CWeaponInfo' : is not a class or namespace name
> d:program files (x86)mymodsrcgamesharedweapon_parse.cpp(44) : error C2143:
> syntax error : missing ';' before '...'
> d:program files (x86)mymodsrcgamesharedweapon_parse.cpp(47) : error C2065:
> 'pEt' : undeclared identifier
> d:program files (x86)mymodsrcgamesharedweapon_parse.cpp(49) : error C2227:
> left of '->GetFloat' must point to class/struct/union/generic type
>  type is ''unknown-type''
> d:program files (x86)mymodsrcgamesharedweapon_parse.cpp(50) : error C2227:
> left of '->GetFloat' must point to
> class/struct/union/generic type
>  type is ''unknown-type''
> d:program files (x86)mymodsrcgamesharedweapon_parse.cpp(51) : error C2227:
> left of '->GetFloat' must point to class/struct/union/generic type
>  type is ''unknown-type''
> d:program files (x86)mymodsrcgamesharedweapon_parse.cpp(53) : error C2227:
> left of '->GetFloat' must point to class/struct/union/generic type
>  type is ''unknown-type''
> d:program files (x86)mymodsrcgamesharedweapon_parse.cpp(54) : error C2227:
> left of '->GetFloat' must point to class/struct/union/generic type
>  type is ''unknown-type''
> d:program files (x86)mymodsrcgamesharedweapon_parse.cpp(55) : error C2227:
> left of '->GetFloat' must point to class/struct/union/generic type
>  type is ''unknown-type''
> d:program files (x86)mymodsrcgamesharedweapon_parse.cpp(62) : error C2143:
> syntax error : missing ';' before '...' 
>
> What's wrong here? I'm sure it's something stupid on my part but I can't
> figure out what. 
>
>  
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>   


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to