CLEO Help [Help] CarSpeed.cs

CLEO related
Status
Not open for further replies.

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
I making this script and this is crashing me!  :angry:
Code:
{$CLEO .cs}
thread "Pa0NeiX"

:MAIN
wait 0
if and
0AB0: 18
0AB0: 1
jf @MAIN
0@ = Actor.CurrentCar($PLAYER_ACTOR)
//Car.SetMaxSpeed(0@, 300)
06A2: get_car 0@ velocity_in_direction_XYZ 7@ 8@ 9@
0A8E: 10@ = 7@ + 1.5
0A8E: 11@ = 8@ + 1.5 
0A8E: 12@ = 9@ + 1.5 
07D5: set_car 0@ velocity_in_direction_XYZ 10@ 11@ 12@ rotation_velocitiesXY 0.0 0.0 unk 0.0
goto @MAIN
Help ??  :yesyes:
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Put "31@ = 1.5" somewhere in the script, under {$CLEO} would be good.
Then change
Code:
0A8E: 10@ = 7@ + 1.5
0A8E: 11@ = 8@ + 1.5 
0A8E: 12@ = 9@ + 1.5
to
Code:
005B: 7@ += 31@  // (float)
005B: 8@ += 31@  // (float)
005B: 9@ += 31@  // (float)

0A8E is used to plus two INT (NOT FLOAT) variables and store the result to another variable. You deleted the last variable and changed it to a float, which is a wrong usage.
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
Keep Crashing  :eek:hgodwhy:
Code:
{$CLEO .cs}
31@ = 1.5
thread "Pa0NeiX"

:MAIN
wait 0
if and
0AB0: 18
0AB0: 1
jf @MAIN
if
Actor.Driving($PLAYER_ACTOR)
jf @MAIN
0@ = Actor.CurrentCar($PLAYER_ACTOR)
06A2: get_car 0@ velocity_in_direction_XYZ 7@ 8@ 9@
0A8E: 10@ = 7@ + 31@
0A8E: 11@ = 8@ + 31@
0A8E: 12@ = 9@ + 31@
07D5: set_car 0@ velocity_in_direction_XYZ 10@ 11@ 12@ rotation_velocitiesXY 0.0 0.0 unk 0.0
goto @MAIN
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
Code:
{$CLEO .cs}
thread "Pa0NeiX"

:MAIN
wait 0
if and
0AB0: 18
0AB0: 1
jf @MAIN
if
Actor.Driving($PLAYER_ACTOR)
jf @MAIN
0@ = Actor.CurrentCar($PLAYER_ACTOR)
06A2: get_car 0@ velocity_in_direction_XYZ 7@ 8@ 9@
7@ += 1.5
8@ += 1.5
9@ += 1.5
07D5: set_car 0@ velocity_in_direction_XYZ 7@ 8@ 9@ rotation_velocitiesXY 0.0 0.0 unk 0.0
goto @MAIN

:imoverit:
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
springfield link said:
Code:
{$CLEO .cs}
thread "Pa0NeiX"

:MAIN
wait 0
if and
0AB0: 18
0AB0: 1
jf @MAIN
if
Actor.Driving($PLAYER_ACTOR)
jf @MAIN
0@ = Actor.CurrentCar($PLAYER_ACTOR)
06A2: get_car 0@ velocity_in_direction_XYZ 7@ 8@ 9@
7@ += 1.5
8@ += 1.5
9@ += 1.5
07D5: set_car 0@ velocity_in_direction_XYZ 7@ 8@ 9@ rotation_velocitiesXY 0.0 0.0 unk 0.0
goto @MAIN

:imoverit:
Still Crashing
 

rasol

Well-known member
Joined
Aug 3, 2014
Messages
214
Reaction score
0
use sampfuncs 5
i will attach it for you
and use cleo 4.1

INSTALLATION

just extract sampfuncs folder to your gta sa folder and delete your old sampfunsc(If you have)
 

Attachments

  • SAMPFUNCS.rar
    266.9 KB · Views: 25
Status
Not open for further replies.
Top