Hello! Help to find the problem with getting text from a textlabelpool.
is - number textlabel
I can get the coordinates, but the text does not work. Can't understand what the problem is.
help link
Code:
if(!checkHandles())
return
dwAddress := readDWORD(hGTA, dwSAMP + SAMP_INFO_OFFSET)
if(ErrorLevel || dwAddress==0) {
ErrorLevel := ERROR_READ_MEMORY
return
}
dwAddress := readDWORD(hGTA, dwAddress + SAMP_PPOOLS_OFFSET)
if(ErrorLevel || dwAddress==0) {
ErrorLevel := ERROR_READ_MEMORY
return
}
dwTextLabel := readDWORD(hGTA, dwAddress + 0xC)
if(ErrorLevel || dwPlayers==0) {
ErrorLevel := ERROR_READ_MEMORY
return
}
X := readFloat(hGTA, dwTextLabel + (i * 29) + 8)
Y := readFloat(hGTA, dwTextLabel + (i * 29) + 12)
Z := readFloat(hGTA, dwTextLabel + (i * 29) + 16)
I can get the coordinates, but the text does not work. Can't understand what the problem is.
help link