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.