i've got several questions on how to add a function for specific addresses.
variable prefixes:
correct me if i'm wrong. i'm assuming
stands for DWORD
stands for ?array?
what are
sample function:
variable prefixes:
- hGTA, hThread
- dwSAMP, dwFunc
- pParam1
- iRefreshScoreboard
- oScoreboardData
- nZone, nCity
- bInitZaC
- wString
- aParams
Code:
dw
Code:
a
what are
Code:
h, p, i, o, n, b, w
sample function:
Code:
getSkinId()
Code:
getSkinId()
{
if(!checkHandles())
return -1
dwCPedPtr := readDWORD(hGTA, ADDR_CPED_PTR)
if(ErrorLevel) {
ErrorLevel := ERROR_READ_MEMORY
return -1
}
if(!dwCPedPtr)
return -1
dwVal := readMem(hGTA, dwCPedPtr + 0x22, 2, "UShort")
if(ErrorLevel) {
ErrorLevel := ERROR_READ_MEMORY
return -1
}
return dwVal
}
- what does PTR mean on some addresses such as this one?
- where did 0x22 come from? why is it the value that is needed to be added to dwCPedPtr to get the id?