
Originally Posted by
Lambda
Meh, i dont think that the values have changed since im using it right now and works fine.
Dunno what's the problem then. Take a look:
Code:
void __stdcall OnChannelChatHook(const struct MUID &uidPlayer,const struct MUID &uidChannel,char *szText)
{
try
{
char szBuff[128];
sprintf( szBuff,"UserID: %s",GetUserID(uidPlayer) );
ConsoleOutput(szBuff);
}
catch(...)
{
ConsoleOutput("Error!");
}
}
Code:
const char* GetUserID(const struct MUID &uidObject)
{
const char* szUserID = NULL;
__asm
{
pushad
mov eax, MMATCHSERVER_GETINSTANCE // Class instance
call eax
mov ecx, eax
push uidObject
mov eax, ZGetObjectA // MMatchServer::ZGetObjectA
call eax
mov eax, dword ptr ds:[eax+0x2C]
mov szUserID, eax
popad
}
return szUserID;
}
BTW, Thanks for the help you're giving =D