you did not say, what you want from these codes.
i want to send a messagebox that writes these coordinates as a message
CPed + 0x14 is a pointer to the location/rotation.
DWORD *X = (*(DWORD*)(0xB6F5F0 + 0x14))+0x30;
DWORD *X = (*(DWORD*)(0xB6F5F0 + 0x14))+0x30;
doesn't works, makes an error:
cannot convert from 'DWORD' to 'DWORD *'
DWORD* Z = (DWORD*)(0xB6F5F0 + 0x14) + 0x38;
always gives the same value
DWORD *X = (*(DWORD**)(0xB6F5F0 + 0x14))+0x30;
char buff[256];
sprintf(buff,"%f", (float)*X);
MessageBoxA(NULL, buff, buff, MB_OK);
crashes the game when used
Off topic but lol @ toxified's sig