Experienced Elementalist
- Joined
- Jun 5, 2013
- Messages
- 256
- Reaction score
- 163
#ifdef FINAL_BUILD
HMODULE GHP = LoadLibrary("WZ_GHP.dll");
if(GHP == NULL)
{
r3dOutToLog("GHP - Not loaded");
ExitProcess(0);
}
#endif
The correct solution has already been implemented! ---> warz simple anti hack dll
i gave the correct answer, just plug this in.
if loadlibrary fails then you should check out the dll which seem to be broken in some way, maybe you can call getlasterror function to get more information
call GetLastError(); right after Loadlibrary failed, google the result of the function and you might find an answer
I don't know GHP well but the GHP server is correctly started?
u are using it properly, now u need to debug it or output the error code using printf("%d", dError); but this requires the client to keep running and you will have to allocate a console first & enable stdoutput or better way use the r3dlog function and pass "%d" as the string variable and dError as the variable which will fill the %d placeholder (you can look up using google which pre-holder you have to use on which datatype)