Results 1 to 4 of 4
  1. #1
    cnttuchme's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    NA
    Posts
    187
    Reputation
    11
    Thanks
    49
    My Mood
    Inspired

    Something tells me i did somthing wrong

    Code:
    #define OFF_RECOIL1 0x3
    #define OFF_RECOIL2 0x6
    #define OFF_RECOIL3 0x9
    
    
    ___________________________________
    void recoil()
    {
    	DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
        if(dwPlayerPtr != 0)
    
    		*(float*)(OFF_RECOIL1+OFS_Z) = 0;
    	*(float*)(OFF_RECOIL2+OFS_Y) = 0;
    		*(float*)(OFF_RECOIL3+OFS_X) = 0;
    }
    i Was thinking i could do 2 things instead of relating it to xyz...relate the no recoil to the crosshair offset....But like idk

    omg lol i think i get it now
    Code:
    #define OFF_RECOIL1 0x3
    #define OFF_RECOIL2 0x6
    #define OFF_RECOIL3 0x9
    
    
    ___________________________________
    void recoil()
    {
    	DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
        if(dwPlayerPtr != 0)
    
    		*(float*)(OFF_RECOIL1, OFF_RECOIL2, OFF_RECOIL3+OFS_Z) = 0;
    	*(float*)(OFF_RECOIL1, OFF_RECOIL2, OFF_RECOIL3+OFS_Y) = 0;
    		*(float*)(OFF_RECOIL1, OFF_RECOIL2, OFF_RECOIL3+OFS_X) = 0;
    }
    Still crashes the game Hrrmm
    Anyideas
    Last edited by cnttuchme; 10-02-2009 at 05:14 PM. Reason: nope

  2. #2
    why06jz's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    295
    Reputation
    14
    Thanks
    54
    Unfortunately rwkeith hasn't been on lately. He was pretty good with Warrock stuff, but look:

    1st off why are you casting a pointer to a float?
    Code:
     *(float*)(OFF_RECOIL1, OFF_RECOIL2, OFF_RECOIL3+OFS_Y) = 0;
    I'm not sure how that would compile, much less run. :L

    2nd you for go to put brackets after the if statement.
    Code:
    if(dwPlayerPtr != 0)
    {
    		*(float*)(OFF_RECOIL1, OFF_RECOIL2, OFF_RECOIL3+OFS_Z) = 0;
    	*(float*)(OFF_RECOIL1, OFF_RECOIL2, OFF_RECOIL3+OFS_Y) = 0;
    		*(float*)(OFF_RECOIL1, OFF_RECOIL2, OFF_RECOIL3+OFS_X) = 0;
    }
    It should look like that....

    There are so many simple errors in this that its actually quite hard to get to the real problem. Even Just copying and pasting you need to know a little bit about C++. I really recommend you learn it. That way you can solve simple problems yourself when editing someone else's code and we can tackle the real issues.

    It's fairly obvious you got this code from someone else who edited it a bunch, who got it from someone else, and so on... try finding an original source and learn C++ for christsake and then come back. You need to atleast know something about what your doing, so I won't mind if you ask a question such as "How does this hack work?"... ofcourse you would have to specify which kind of 'hack' but I would trry to help.

  3. #3
    zhaoyun333's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    396
    Reputation
    11
    Thanks
    1,125
    wtf why? why the commas?

    Code:
    void recoil()
    {
    	DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
        if(dwPlayerPtr != 0){
    
    		*(float*)(OFF_RECOIL1+dwPlayerPtr) = 0; //PROBLEM HERE
    	*(float*)(OFF_RECOIL2+dwPlayerPtr) = 0;
    		*(float*)(OFF_RECOIL3+dwPlayerPtr) = 0;
    }
    }
    Why do u add the recoil offsets and the xyz offsets?
    Last edited by zhaoyun333; 10-03-2009 at 07:16 AM.
    There are five possible operations for any army. If you can fight, fight; if you cannot fight, defend; if you cannot defend, flee; if you cannot flee, surrender; if you cannot surrender, die." - Sima Yi

  4. #4
    cnttuchme's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    NA
    Posts
    187
    Reputation
    11
    Thanks
    49
    My Mood
    Inspired
    I was just testing i know im a nub but im trying to learn a lot more..and bye experimenting by setting it with x,y,z i thought the cursor wouldn't move, logically speaking im just trying my best and @why06jz I got a book about c++ and im reading it atm but in the mean time i wish to learn just to make simple hacks no-spread no-recoil etc....thanks for your criticism but i already been told to learn c++, and i am but if someone could show me how to get no-recoil and no-spread then that will due till i finish my book.
    Last edited by cnttuchme; 10-02-2009 at 11:03 PM.

Similar Threads

  1. somthing wrong
    By killerwail in forum WarRock Help
    Replies: 16
    Last Post: 03-17-2011, 09:43 AM
  2. can someone tell me what i do wrong
    By boyrent in forum CrossFire Help
    Replies: 2
    Last Post: 06-26-2010, 01:06 PM
  3. somthing wrong with me
    By Axlillo95 in forum CrossFire Help
    Replies: 9
    Last Post: 05-11-2010, 09:25 AM
  4. request ssry did it wrong m16a3 to aug a3
    By 2unbaned acc in forum Combat Arms Mod Discussion
    Replies: 0
    Last Post: 01-16-2010, 08:35 PM
  5. somthing wrong with my combat arms!!!
    By buster112 in forum Combat Arms Help
    Replies: 8
    Last Post: 08-25-2009, 11:55 AM

Tags for this Thread