Sorry to double post but can you post the full source with headers please? I would really like to try and toy around with this, but I cant even get it to build without errors. What headers do I need? Any special ones?
1>------ Build started: Project: suddenattack, Configuration: Release Win32 ------
1> dllmain.cpp
1>dllmain.cpp(74): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>dllmain.cpp(74): error C2373: 'GetLocalPlayer' : redefinition; different type modifiers
1> dllmain.cpp(10) : see declaration of 'GetLocalPlayer'
1>dllmain.cpp(74): error C2440: 'initializing' : cannot convert from 'lpGetLocalPlayer' to 'int'
1> There is no context in which this conversion is possible
1>dllmain.cpp(79): error C2143: syntax error : missing ';' before '*'
1>dllmain.cpp(79): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>dllmain.cpp(79): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>dllmain.cpp(79): error C2059: syntax error : ')'
1>dllmain.cpp(82): error C2059: syntax error : 'for'
1>dllmain.cpp(82): error C2143: syntax error : missing ')' before ';'
1>dllmain.cpp(82): error C2143: syntax error : missing ';' before '<'
1>dllmain.cpp(82): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>dllmain.cpp(82): error C2143: syntax error : missing ';' before '++'
1>dllmain.cpp(82): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>dllmain.cpp(82): error C2086: 'int i' : redefinition
1> dllmain.cpp(82) : see declaration of 'i'
1>dllmain.cpp(82): error C2059: syntax error : ')'
1>dllmain.cpp(82): error C2143: syntax error : missing ';' before '{'
1>dllmain.cpp(82): error C2447: '{' : missing function header (old-style formal list?)
1>dllmain.cpp(124): fatal error C1004: unexpected end-of-file found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========