Originally Posted by nikizaniki2
Thanks for helping me (first code ever, i only know some basic c/c++ still in school)
but the programs gives me the same error every time
Since your code is fixed, it sounds like the error at this point is your actual command. Do you have the actual SourceMod Compiler? If not, just download SourceMod, and extract it where you want. The "spcomp" compiler is in the "scripting" folder.
SourceMod Download: https://www.sourcemod.net/downloads.php
To do a simple compile, assuming your "spcomp.exe" file is in the same directory as your source file (.sp), the following will do:
If your SourceMod compiler is in a different folder, I believe this will work (untested)
spcomp -i/path/to/your/source/file.sp -o/path/to/save/compiled/file.smx
You can also use the online compiler:
There is another good online compiler as well here, you can also use addition include files if needed:
Hope that helps!