Adeel
Active member
- Joined
- Jul 24, 2014
- Messages
- 80
- Reaction score
- 0
This Code Crash For Me Can You Fix It ? Please
{$CLEO}
0007: 2@ = 2000.0 // Mass you want the car to have
while true
0001: wait 500 ms
if
00DF: actor $PLAYER_ACTOR driving
then
if
0039: 4@ == 0 // Have we altered this car yet (because there's no point in overwriting that mass 2 times a second)?
then
03C0: 0@ = actor $PLAYER_ACTOR car
0A97: 1@ = car 0@ struct
000A: 1@ += 0x8C
0A8C: write_memory 1@ size 4 value 2@ virtual_protect 0
000A: 1@ += 0x4
0087: 3@ = 2@ // (float)
0013: 3@ *= 2.5 // x2.5 usually does the trick with turnmass
0A8C: write_memory 1@ size 4 value 3@ virtual_protect 0
0006: 4@ = 1
end
else
0006: 4@ = 0
end
end
{$CLEO}
0007: 2@ = 2000.0 // Mass you want the car to have
while true
0001: wait 500 ms
if
00DF: actor $PLAYER_ACTOR driving
then
if
0039: 4@ == 0 // Have we altered this car yet (because there's no point in overwriting that mass 2 times a second)?
then
03C0: 0@ = actor $PLAYER_ACTOR car
0A97: 1@ = car 0@ struct
000A: 1@ += 0x8C
0A8C: write_memory 1@ size 4 value 2@ virtual_protect 0
000A: 1@ += 0x4
0087: 3@ = 2@ // (float)
0013: 3@ *= 2.5 // x2.5 usually does the trick with turnmass
0A8C: write_memory 1@ size 4 value 3@ virtual_protect 0
0006: 4@ = 1
end
else
0006: 4@ = 0
end
end