| View previous topic :: View next topic |
| Author |
Message |
kb3z0n Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 542
|
Posted: Fri Jul 24, 2009 3:05 pm Post subject: error C2415: improper operand type |
|
|
I'm getting that error on.
heres the whole script.
| Code: |
pushad
mov [ebp+0xC],0x0
mov [ebp+0x10],0x0
popad
cmp [ebp+0x0c],ebx
jne 0x00865976
jmp 0x0086599
jmp dword ptr ds:[PlayerAddy+5]
|
edit:
i did jmp dword ptr ds:[0x0086599]. it compiled, not sure if works.
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Fri Jul 24, 2009 10:52 pm Post subject: |
|
|
| Code: | DWORD dwAddy = 0x0086599; // This must have another number that your missing? 0x0086599X?
__asm
{
PUSHAD
MOV [EBP+0x0C],0
MOV [EBP+0x10],0
POPAD
CMP [EBP+0x0C],EBX
JNE 0x00865976
JMP DWORD PTR [dwAddy]
JMP DWORD PTR [dwPlayerAddy + 5] // Redundent? This will never be reached...
} |
_________________
|
|
| Back to top |
|
 |
kb3z0n Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 542
|
Posted: Fri Jul 24, 2009 11:26 pm Post subject: |
|
|
Sorry, the address is : 0x0086599A.
and this is my first time converting CT to inline asm, so i wasn't pretty sure what i was doing.
edit : thanks man works perfectly.
|
|
| Back to top |
|
 |
|