Results 1 to 11 of 11
  1. #1
    Mar1 The Best's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Location
    Some Where In The Planet
    Posts
    103
    Reputation
    10
    Thanks
    18
    My Mood
    Relaxed

    Hello I need some help

    Slot5.obj : error LNK2005: _DllMain@12 already defined in dllmain.obj
    When I press the Build Solution i got this Error can someone help me ?

    Code:
    // Slot51.cpp : Defines the exported functions for the DLL application.
    //
    
    #include "stdafx.h"
    #include <stdio.h>
    #include <Windows.h>
    #include "Pointers.h"
    #include "Offsets.h"
    
    HANDLE Warrock;
    DWORD* Player = ( DWORD* ) PlayerPointer;
    DWORD* Server = ( DWORD* ) ServerPointer;
    
    void NoFallDamage()
    {
    	*(float*) ( Player + FallDamage ) = -20000;
    }
    void Slot()
    {	
    			*(long*)(  ServerPointer + Slot_5)=1;
     
    }
    void CodeThread()
    {
    	for(;;)
    	{
    		if ( *Player )
    		{
    			
    			NoFallDamage();
    			
    		}
    
    		if ( *Server ) 
    		{
    			Slot();
    		}
    		Sleep ( 200 );
    	}
    }
    
    BOOL WINAPI DllMain ( HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved )
    {
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    MessageBoxA ( NULL, "DLL was injected successfully.", "SeptFicelle", MB_OK ); 
    MessageBoxA ( NULL, "Thanks for using my source code. =)", "SeptFicelle", MB_OK ); 
    CreateThread ( 0, 0, ( LPTHREAD_START_ROUTINE ) CodeThread, 0, 0, 0 ); 
    }
    return TRUE;
    }
    Code:
    Offsets.h
    #define FallDamage			0x103A4
    #define Slot_5				0x1021A4
    
    
    Pointers.h
    #define PlayerPointer		0xC62388
    #define ServerPointer		0xB5D0F8
    Last edited by Mar1 The Best; 11-09-2010 at 12:37 PM.

  2. #2
    AeroMan's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Hell
    Posts
    3,294
    Reputation
    189
    Thanks
    3,049
    My Mood
    Busy
    Quote Originally Posted by Mar1 The Best View Post
    Slot5.obj : error LNK2005: _DllMain@12 already defined in dllmain.obj
    When I press the Build Solution i got this Error can someone help me ?
    Add this one
    BOOL WINAPIA DllMain /* Probably done wrong 'DllMain'*/ (HINSTANCE hMODULE,DWORD AeroMan,LPVOID lpvReserved)
    {
    if(AeroMan == DLL_PROCESS_ATTACH)
    {
    Create...
    }
    }

    //You defined Dllmain wrong i guess
    need to see it before i will be able to fix it

    EDIT: Post your complete source here
    Last edited by AeroMan; 11-09-2010 at 12:33 PM.

  3. #3
    Mar1 The Best's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Location
    Some Where In The Planet
    Posts
    103
    Reputation
    10
    Thanks
    18
    My Mood
    Relaxed
    Quote Originally Posted by AeroMan View Post
    Add this one
    BOOL WINAPIA DllMain /* Probably done wrong*/ (HINSTANCE hMODULE,DWORD AeroMan,LPVOID lpvReserved)
    {
    if(AeroMan == DLL_PROCESS_ATTACH)
    {
    Create...
    }
    }

    //You defined Dllmain wrong i guess
    need to see it before i will be able to fix it
    I am Trying to make a SLot5 & NFD Hack I will edit my thred to my Code

  4. #4
    AeroMan's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Hell
    Posts
    3,294
    Reputation
    189
    Thanks
    3,049
    My Mood
    Busy
    Quote Originally Posted by Mar1 The Best View Post
    I am Trying to make a SLot5 & NFD Hack I will edit my thred to my Code
    Post your complete source, so i can see the exact problem but i guess its the problem i fixed in previous post

  5. #5
    Mar1 The Best's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Location
    Some Where In The Planet
    Posts
    103
    Reputation
    10
    Thanks
    18
    My Mood
    Relaxed
    Quote Originally Posted by AeroMan View Post
    Post your complete source, so i can see the exact problem but i guess its the problem i fixed in previous post
    I am trying what you tell me to do 1 Min

    can you fix it I think that I made something wrong
    Last edited by Mar1 The Best; 11-09-2010 at 12:41 PM.

  6. #6
    AeroMan's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Hell
    Posts
    3,294
    Reputation
    189
    Thanks
    3,049
    My Mood
    Busy
    Project > Proporties > Configuration properties > Character set > use multi byte set > F7 > Have fun

    Also try inplace of "hModule" -> "hMODULE"

  7. #7
    Mar1 The Best's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Location
    Some Where In The Planet
    Posts
    103
    Reputation
    10
    Thanks
    18
    My Mood
    Relaxed
    No it didn't work

  8. #8
    AeroMan's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Hell
    Posts
    3,294
    Reputation
    189
    Thanks
    3,049
    My Mood
    Busy
    Quote Originally Posted by Mar1 The Best View Post
    No it didn't work
    you got teamviewer?

  9. #9
    Mar1 The Best's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Location
    Some Where In The Planet
    Posts
    103
    Reputation
    10
    Thanks
    18
    My Mood
    Relaxed
    I PM the ID and Pass


    Edit :
    Did you got them ?
    Last edited by Mar1 The Best; 11-09-2010 at 01:08 PM.

  10. #10
    Alen's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    Liquid Generator
    Posts
    27,920
    Reputation
    2548
    Thanks
    4,224
    My Mood
    Fine
    Moving to the source section

  11. #11
    Skatebone1's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    safafa
    Posts
    41
    Reputation
    10
    Thanks
    0
    My Mood
    Amused
    Last edit:

    Try:

    #define OFS_FallDamage 0x103A4
    #define OFS_Slot_5 0x1021A4
    Last edited by Skatebone1; 11-09-2010 at 04:04 PM.

Similar Threads

  1. [Help Request] Need some help to make a bot
    By Domo in forum Vindictus Help
    Replies: 6
    Last Post: 05-21-2011, 10:15 AM
  2. [Help Request] I need some help with binding eps7
    By v1zhaixingv1 in forum Vindictus Help
    Replies: 3
    Last Post: 05-18-2011, 09:25 PM
  3. Hello, New here, Need some help..
    By Sharp1337X in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 08-14-2010, 09:34 AM
  4. Hello! Need some help here!
    By Rossvelt in forum Battlefield Heroes Hacks
    Replies: 5
    Last Post: 01-18-2010, 09:44 AM
  5. ^Hello I need some help
    By Dark_fail in forum Combat Arms Europe Hacks
    Replies: 5
    Last Post: 10-02-2009, 06:14 PM