get TextLabel text

tumkin

New Member
Joined
Oct 5, 2014
Messages
3
Likes
0
Points
1
#1
Hello! Help to find the problem with getting text from a textlabelpool.

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)
 is - number textlabel

I can get the coordinates, but the text does not work. Can't understand what the problem is.

help link
 
Top