SUCCESS. I compiled the sample extension.
HTML Code:
C:\libs\testenvr\sourcemod\public\sample_ext\build>ambuild
[create] mkdir -p sample.ext.2.tf2
[create] mkdir -p package
[create] mkdir -p package\addons
[create] mkdir -p package\addons\sourcemod
[create] mkdir -p package\addons\sourcemod\extensions
Spawned taskmaster (pid: 9496)
Spawned worker (pid: 12180)
Spawned worker (pid: 10264)
[12180] cl /MT /W3 /Ox /Zo /Oy- /Zi /FS /EHsc /GR- /TP /D_CRT_SECURE_NO_DEPRECAT
E /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /D_ITERATOR_DEBUG_LEVEL=
0 /DNDEBUG /DWIN32 /D_WINDOWS /DSE_TF2=11 /DSE_DOTA=21 /DSE_HL2DM=7 /DSE_INSURGE
NCY=19 /DSE_EYE=5 /DSE_ORANGEBOX=3 /DSE_CONTAGION=14 /DSE_PORTAL2=17 /DSE_LEFT4D
EAD2=15 /DSE_DARKMESSIAH=2 /DSE_EPISODEONE=1 /DSE_NUCLEARDAWN=13 /DSE_BLADE=18 /
DSE_CSGO=20 /DSE_DODS=8 /DSE_LEFT4DEAD=12 /DSE_BMS=10 /DSE_CSS=6 /DSE_BLOODYGOOD
TIME=4 /DSE_ALIENSWARM=16 /DSE_SDK2013=9 /DSOURCE_ENGINE=11 /DCOMPILER_MSVC /DCO
MPILER_MSVC32 /I ..\..\.. /I ..\.. /I ..\..\sdk /I ..\..\.. /I ..\..\..\extensio
ns /I ..\..\..\..\sourcepawn\include /I ..\..\..\amtl\amtl /I ..\..\..\amtl /I .
.\..\..\..\..\..\metamod-source-master\core /I ..\..\..\..\..\..\metamod-source-
master\core\sourcehook /I ..\..\..\..\..\..\hl2sdk-tf2\public /I ..\..\..\..\..\
..\hl2sdk-tf2\public\engine /I ..\..\..\..\..\..\hl2sdk-tf2\public\mathlib /I ..
\..\..\..\..\..\hl2sdk-tf2\public\vstdlib /I ..\..\..\..\..\..\hl2sdk-tf2\public
\tier0 /I ..\..\..\..\..\..\hl2sdk-tf2\public\tier1 /I ..\..\..\..\..\..\hl2sdk-
tf2\public\game\server /I ..\..\..\..\..\..\hl2sdk-tf2\public\toolframework /I .
.\..\..\..\..\..\hl2sdk-tf2\game\shared /I ..\..\..\..\..\..\hl2sdk-tf2\common /
showIncludes /nologo /c C:\libs\testenvr\sourcemod\public\sample_ext\extension.c
pp /Foextension.obj
extension.cpp
[10264] cl /MT /W3 /Ox /Zo /Oy- /Zi /FS /EHsc /GR- /TP /D_CRT_SECURE_NO_DEPRECAT
E /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /D_ITERATOR_DEBUG_LEVEL=
0 /DNDEBUG /DWIN32 /D_WINDOWS /DSE_TF2=11 /DSE_DOTA=21 /DSE_HL2DM=7 /DSE_INSURGE
NCY=19 /DSE_EYE=5 /DSE_ORANGEBOX=3 /DSE_CONTAGION=14 /DSE_PORTAL2=17 /DSE_LEFT4D
EAD2=15 /DSE_DARKMESSIAH=2 /DSE_EPISODEONE=1 /DSE_NUCLEARDAWN=13 /DSE_BLADE=18 /
DSE_CSGO=20 /DSE_DODS=8 /DSE_LEFT4DEAD=12 /DSE_BMS=10 /DSE_CSS=6 /DSE_BLOODYGOOD
TIME=4 /DSE_ALIENSWARM=16 /DSE_SDK2013=9 /DSOURCE_ENGINE=11 /DCOMPILER_MSVC /DCO
MPILER_MSVC32 /I ..\..\.. /I ..\.. /I ..\..\sdk /I ..\..\.. /I ..\..\..\extensio
ns /I ..\..\..\..\sourcepawn\include /I ..\..\..\amtl\amtl /I ..\..\..\amtl /I .
.\..\..\..\..\..\metamod-source-master\core /I ..\..\..\..\..\..\metamod-source-
master\core\sourcehook /I ..\..\..\..\..\..\hl2sdk-tf2\public /I ..\..\..\..\..\
..\hl2sdk-tf2\public\engine /I ..\..\..\..\..\..\hl2sdk-tf2\public\mathlib /I ..
\..\..\..\..\..\hl2sdk-tf2\public\vstdlib /I ..\..\..\..\..\..\hl2sdk-tf2\public
\tier0 /I ..\..\..\..\..\..\hl2sdk-tf2\public\tier1 /I ..\..\..\..\..\..\hl2sdk-
tf2\public\game\server /I ..\..\..\..\..\..\hl2sdk-tf2\public\toolframework /I .
.\..\..\..\..\..\hl2sdk-tf2\game\shared /I ..\..\..\..\..\..\hl2sdk-tf2\common /
showIncludes /nologo /c C:\libs\testenvr\sourcemod\public\smsdk_ext.cpp /FoC_lib
s_testenvr_sourcemod_public_smsdk_ext.obj
smsdk_ext.cpp
[10264] cl C_libs_testenvr_sourcemod_public_smsdk_ext.obj extension.obj /link /M
ACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.
lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /OPT:ICF
/OPT:REF C:\libs\hl2sdk-tf2\lib\public\tier0.lib C:\libs\hl2sdk-tf2\lib\public\
tier1.lib C:\libs\hl2sdk-tf2\lib\public\vstdlib.lib C:\libs\hl2sdk-tf2\lib\publi
c\mathlib.lib /OUT:sample.ext.2.tf2.dll /DEBUG /nologo /DLL /DEBUG /PDB:"sample.
ext.2.tf2.pdb"
Creating library sample.ext.2.tf2.lib and object sample.ext.2.tf2.exp
[10264] cp "sample.ext.2.tf2\sample.ext.2.tf2.dll" ".\package\addons\sourcemod\e
xtensions\sample.ext.2.tf2.dll"
Build succeeded.
C:\libs\testenvr\sourcemod\public\sample_ext\build>
I used git and I done all the procedures! Thank you to everyone who helped me!
Now the last two questions. The compiled binary is 32-bit or it isn't? Because I use Windows 8.1 64-bit. And the second question is: Is it necessary to rename the binary file?
Edit: The sample extension works perfectly, it shows when I enter "sm exts list". This means that the binary is 32-bit. Ok, I finished asking questions for now.
PS: Blame Microsoft for their complete compiler mess!!!
__________________