Hello, I am trying to make GetItemIndex for a pserver, but I am having some problems.
This is the function:
[Only registered and activated users can see links. Click Here To Register...]
And this is the code I was using for other servers:
But as you can see from the screen, the function is a bit different, so this is my code:
But it's always returning 0.
Any hints on how to fix this are appreciated, thanks in advance :)
This is the function:
[Only registered and activated users can see links. Click Here To Register...]
And this is the code I was using for other servers:
Code:
int GetItemIndex(int index)
{
int value;
__asm
{
mov ecx, [0x6E24A8]
mov edx, [ecx+ 0x4]
mov edx, [edx+ 0x40]
add ecx, 4
push index
call edx
mov value, eax
}
return value;
}
Code:
int GetItemIndex(int index)
{
int value;
__asm
{
mov ecx, [0x6C4148]
mov edx, [ecx+0x4]
add ecx, 4
push index
mov eax, [edx+0x40]
call eax
mov value, eax
}
return value;
}
Any hints on how to fix this are appreciated, thanks in advance :)