get streamed Vehicles C++

AnalFatal

Active member
Joined
Sep 16, 2014
Messages
27
Reaction score
0
Hey Guys.

Can anyone translate this here to C++?
This would be great :)

Code:
0A8D: 29@ = read_memory 0xB74494 size 4 virtual_protect 0
29@ += 0x4
0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0
for 30@ = 0 to 27904 step 0x100
    0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0
    000A: 29@ += 0x1
    if and
        0029: 31@ >= 0x00 
        001B: 0x80 > 31@
    then
        005A: 31@ += 30@
        // GOT THE CAR.
    end
end

would only get cars.

thanx.  :challenge_completed:
 

0x_

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,123
Reaction score
177
Rather learn, asking everytime without having a starting point doesn't help do something, if you need help then i'm glad to help.
 

AnalFatal

Active member
Joined
Sep 16, 2014
Messages
27
Reaction score
0
[member=2]0x688[/member]

i got some of this values from my function
can that be the car pointers:?

-9076237603502005908
208730841843653228
-5998101537983568608
7827428489470773348
-5748232412807962257
-5439572924116279698
4846509789751493989
-918140928788939730
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
273
Code:
DWORD p, p1;
BYTE veh;
p = *(DWORD*)0xB74494 + 0x4;
p1 = *(DWORD*)p;
for (int i = 0; i < 27904; i += 0x100){
	veh = *(DWORD*)p1;
	p1 += 0x1;
	if (veh >= 0 && 0x80 > veh){
		DWORD carid = (veh + i);
		//got the car?
	}
}
Shitty translation from cleo to c++  :eek:h_stop_it_u:

But this won't return the car pointer, it will return the car id from pool.
 

AnalFatal

Active member
Joined
Sep 16, 2014
Messages
27
Reaction score
0
i can get the position from id too right? to code CarShooter

your function returns the same value.

4846509789751493989
-918140928788939730
... and more

this are carId´s right?
 

0x_

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,123
Reaction score
177
springfield link said:
Code:
DWORD p, p1;
BYTE veh;
p = *(DWORD*)0xB74494 + 0x4;
p1 = *(DWORD*)p;
for (int i = 0; i < 27904; i += 0x100){
	veh = *(DWORD*)p1;
	p1 += 0x1;
	if (veh >= 0 && 0x80 > veh){
		DWORD carid = (veh + i);
		//got the car?
	}
}
Shitty translation from cleo to c++  :eek:h_stop_it_u:

But this won't return the car pointer, it will return the car id from pool.

Code:
p = *(DWORD*)0xB74494 + 0x4;
>
Code:
p = *(DWORD*)0xB74494;
+
Code:
p += 0x4;

:X
 
Top