Show us the offending lines. It sounds like your network table declarations are wrong.
-Tony On Wed, Aug 6, 2008 at 6:47 PM, Øystein Dale <[EMAIL PROTECTED]>wrote: > I'm coding a weapon for the HL2MP, but I'm having serious issues with the > preprocessor blocks. I'm getting the wrong blocks on both server/client > project > > All the weapon .cpp files used in HL2MP lies in src\game_shared\hl2mp. The > default weapons are fine, the preprocessor blocks are correct on both > projects. > > However, in my file, weapon_ak74.cpp (Not a typo, it really is AK74) the > preprocessor blocks are either reversed or both projects has the CLIENT_DLL > as the active block. > This means that when compiling i get several errors stating: > > Error C2653: 'C_CWeaponAK74' : is not a class or namespace name g:\viral > outbreak\src\game_shared\hl2mp\weapon_ak74.cpp 102 > > and if I let it go all the way to the server build too: > > Error 2 error C2653: 'CCWeaponAK74' : is not a class or namespace > name g:\viral outbreak\src\game_shared\hl2mp\weapon_ak74.cpp 102 > > Not sure if the last one is correct, the real name of the class is > "CWeaponAK74" (without quotes of course). > > I've based the file on the weapon_smg1.cpp file, the standard HL2 SMG > > Thanks for any help in advance, > Øystein > > > > > > > > _________________________________________________________________ > Med MSN på mobilen holder du deg oppdatert. > http://info.mobile.no.msn.com/pc/default.aspx?ocid=30032 > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- -Tony _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders