
Originally Posted by
Lambda
Try this.
Code:
int GetUGradeID(const MUID& ObjectUID)
{
int UGradeID = 0;
__asm
{
mov eax, MMATCHSERVER_GETINSTANCE
call eax
mov ecx, eax
push ObjectUID
mov eax, MMATCHSERVER_GETOBJECTA
call eax
mov UGradeID, dword ptr ds:[eax+0x44]
}
return UGradeID;
}
Thanks, but that's giving me the following error:
Code:
error C2415: improper operand type
at
Code:
mov UGradeID, dword ptr ds:[eax+0x44]
EDIT: BTW, i've tried that:
Code:
mov eax, MMATCHSERVER_GETINSTANCE // Class instance
call eax
mov ecx, eax
push uidObject
mov eax, ZGetObjectA // Calling the function
call eax
mov eax, dword ptr ds:[eax+0x44]
mov UGradeID, eax
It returns the UGradeID well, but crashes after the command is completed.
Any tips?