i wrote like this
DWORD p=(DWORD) acd[i];
__asm
{
pushad
mov ecx,p
push ecx
mov eax,0x00BBE670
call eax
//add esp,0xc
popad
}
but it does not work!
i wrote like this
DWORD p=(DWORD) acd[i];
__asm
{
pushad
mov ecx,p
push ecx
mov eax,0x00BBE670
call eax
//add esp,0xc
popad
}
but it does not work!
and what it does?
Did you ever take a close look at the function you want to call with your code ? The 'SellItem' function calls a multitude of subfunctions, one of them GetInt which uses TLS (Thread Local Storage).
So you have to be on the same thread when u call SellItem/GetInt. Hook endscene and call from there or find another solution, sry ...