Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
so i've been trying to make a custom weapon to hl1, after i do all of the coding and i compile it, visual studio 6 has troubles executing cl.exe. here is the log:

C++
<pre>--------------------Configuration: hl - Win32 Profile--------------------
Compiling...
client.cpp
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\client.cpp(1549) : error C2039: 'ammo_10' : is not a member of 'CBasePlayer'
        C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\player.h(88) : see declaration of 'CBasePlayer'
f***finger.cpp
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(65) : error C2601: 'Deploy' : local function definitions are illegal
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(71) : error C2601: 'SecondaryAttack' : local function definitions are illegal
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(78) : error C2601: 'PrimaryAttack' : local function definitions are illegal
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(89) : error C2601: 'GlockFire' : local function definitions are illegal
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(115) : error C2039: 'm_iWeap' : is not a member of 'CBasePlayer'
        C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\player.h(88) : see declaration of 'CBasePlayer'
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(115) : error C2059: syntax error : '>'
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(120) : error C2065: 'fUseAutoAim' : undeclared identifier
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(135) : error C2065: 'm' : undeclared identifier
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(135) : error C2146: syntax error : missing ';' before identifier 'flNextPrimaryAttack'
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(135) : error C2065: 'flNextPrimaryAttack' : undeclared identifier
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(135) : error C2065: 'm_flNextSec' : undeclared identifier
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(135) : error C2065: 'flCycleTime' : undeclared identifier
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(141) : error C2146: syntax error : missing ';' before identifier 'flTimeWeap'
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(141) : error C2065: 'flTimeWeap' : undeclared identifier
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(141) : warning C4552: '+' : operator has no effect; expected operator with side-effect
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(146) : error C2039: 'ammo_10' : is not a member of 'CBasePlayer'
        C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\player.h(88) : see declaration of 'CBasePlayer'
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(158) : error C2065: 'm_flTimeWeap' : undeclared identifier
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(158) : warning C4552: '+' : operator has no effect; expected operator with side-effect
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(181) : warning C4552: '+' : operator has no effect; expected operator with side-effect
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(186) : warning C4552: '+' : operator has no effect; expected operator with side-effect
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\f***finger.cpp(191) : warning C4552: '+' : operator has no effect; expected operator with side-effect
player.cpp
C:\Users\Alexandre\Downloads\Compressed\HL1MK3.0\HL1MK3.0\SDK'S\Regular Half-Life\SDK 2.3\dlls\player.cpp(1123) : error C2065: 'ammo_10' : undeclared identifier
Error executing cl.exe.

hl.dll - 18 error(s), 5 warning(s)


and here is the "f***finger.cpp" codings:
https://pastebin.com/KVAtkPnF

What I have tried:

i've tried:
1:going to the cl.exe folder and modifying the propreties of the file.
2:putting the folder directory in tools>options>directories
Posted
Updated 16-Jun-20 21:55pm

1 solution

These are compilation errors, nothing to do with execution of the compiled program. Each message gives you the filename and the line number where your code needs correcting.

Note Visual Studio 6 is extremely old and may well not be compatible with some more modern code bases. You should get a copy of Visual Studio 2019 (free from Microsoft) and try that.

incidentally the first error is a missing closing brace (}) on line 63.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900