Holy **** i just skipped the people complaining and not wanting to learn C++ but now last page someone took the advice!![]()
Ok I've made it to the point where I can Build it into a dll however this shows up at Line 1 Column 1
A Namespace cannot directly contains members such as field or methods
Any Correction for this? Or do I still have to use Source SDK with this?
Holy **** i just skipped the people complaining and not wanting to learn C++ but now last page someone took the advice!![]()
This is what the Error Code is on C++
1>------ Build started: Project: Spy Auto-Backstab, Configuration: Debug Win32 ------
1> Stdafx.cpp
1> AssemblyInfo.cpp
1> Spy Auto-Backstab.cpp
1>c:\users\user\documents\visual studio 2010\projects\spy auto-backstab\spy auto-backstab\Spy Auto-Backstab.h(1): error C2059: syntax error : 'if'
1>c:\users\user\documents\visual studio 2010\projects\spy auto-backstab\spy auto-backstab\Spy Auto-Backstab.h(2): error C2143: syntax error : missing ';' before '{'
1>c:\users\user\documents\visual studio 2010\projects\spy auto-backstab\spy auto-backstab\Spy Auto-Backstab.h(2): error C2447: '{' : missing function header (old-style formal list?)
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
This is what it looks like on C#
AndyPlays6 (12-17-2013)
Yup you gotta download the Pic
(Yes I did Copy&Paste the Code you call me a Idiot if it isn't supposed to be that easy I know only the Basics of C++ and C# Only)
Is't better if you guys create the stupid file and let us download it instead of been as holes judging ppl that don't know how to work with that nub code?
Seriously no Replies on the Fix?
no definitions, no declarations... ... what do you expect?
Also with c# you literally have to byRef everything instead of pointers ( from the little understanding I have of C#-used it once)
MPGH has become pretty cancerous lately.
I just found this site and I just registered for this thread.
Everyone in this thread is acting like a 6 year old child.
First the leechers that just want to code complied in C++ to a library (.dll) so they can inject it into the HL2.exe
Then the programmers that are obsessed with people learning C++
Basically, to those who want to know how this goes, you have to comply your own program with that code. Its not just code and paste that code and it works, no. You have to inject the code actually running with this new code. Like mentioned, you have to scan in memory when the original code is running and once you find it, automatically replace it with this. It is A LOT faster than a trainer.
Google for. "inject code in memory c++"