S
Suppraza
Guest
I tried to add it to some project (No s0beit Project.) and this crash.... :face_palm:
(SAMP 0.3.7)
(SAMP 0.3.7)
Code:
void restartGame()
{
unsigned int samp_info = (unsigned int)g_dwSampAddr + 0x21A0F8;
unsigned int func = (unsigned int)g_dwSampAddr + 0xA060;
__asm
{
MOV eax, dword ptr[samp_info]
MOV ecx, dword ptr[eax]
CALL func
POP eax
POP ecx
}
}
Code:
void restartGame()
{
uint32_t samp_info = g_dwSampAddr + 0x21A0F8;
uint32_t func = g_dwSampAddr + 0xA060;
__asm
{
MOV eax, dword ptr[samp_info]
MOV ecx, dword ptr[eax]
CALL func
POP eax
POP ecx
}
}