CLEO Help Error help

CLEO related
Status
Not open for further replies.

bonesaw2303

Active member
Joined
Jul 25, 2014
Messages
42
Reaction score
0
So i just compile and edit to this script and i got the messege: Incorrect number of the conditions, i want the health of the car to be set to 0
// This file was decompiled using SASCM.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007
{$CLEO .cs}

//-------------MAIN---------------
thread 'RC'

:RC_11
wait 0
if
  Player.Defined($PLAYER_ACTOR)
03C0: 1@ = actor $PLAYER_ACTOR car
else_jump @RC_11
if
  Actor.Driving($PLAYER_ACTOR)
else_jump @RC_11
wait 0
jump @RC_66

:RC_66
wait 0
if
key_down 82
else_jump @RC_114
0A30: repair_car 1@
Car.Health(4@) = 0

:RC_114
wait 0
jump @RC_11
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Code:
{$CLEO .cs}

thread 'RC' 

:RC_11
wait 0 
if
Player.Defined($PLAYER_ACTOR)
else_jump @RC_11 
if 
   Actor.Driving($PLAYER_ACTOR)
else_jump @RC_11
03C0: 1@ = actor $PLAYER_ACTOR car 
jump @RC_66 

:RC_66
wait 0 
if 
key_down 82 
else_jump @RC_114 
0A30: repair_car 1@ 
Car.Health(4@) = 0

:RC_114
wait 0 
jump @RC_11
 

bonesaw2303

Active member
Joined
Jul 25, 2014
Messages
42
Reaction score
0
Thanks but can you help me with this.
I want whenever i type the cheat it doesnt teleport me into the car. Can you make the cheat can only be activated in a car? Like when you type BOMB you can only activate in a car

Cleo by @WZ
{$CLEO .cs}
0000: NOP
:suicidebomber
wait 0
if and
056D: actor $PLAYER_ACTOR defined
0ADC: test_cheat "BOMB"
jf @suicidebomber
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 4@ closest_ped_to $nic
036A: put_actor $PLAYER_ACTOR in_car 4@
0224: set_car 4@ health_to 0
0AD1: show_formatted_text_highpriority "CAR HEALTH to 0" time 2000 0x0AD1
jump @suicidebomber
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Code:
{$CLEO .cs}

0000: NOP

:suicidebomber
wait 0 
if and
Actor.Driving($PLAYER_ACTOR)
0ADC: test_cheat "BOMB"
jf @suicidebomber
0@ = Actor.CurrentCar($PLAYER_ACTOR)
0224: set_car 0@ health_to 0.0
jump @suicidebomber
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
? link said:
Can you disable the cheat on foot? It will crash if you do it on foot

Try with this:

Code:
{$CLEO .cs}

0000: NOP

:suicidebomber
wait 0 
if and
044B: not actor $PLAYER_ACTOR on_foot
Actor.Driving($PLAYER_ACTOR)
0ADC: test_cheat "BOMB"
jf @suicidebomber
0@ = Actor.CurrentCar($PLAYER_ACTOR)
0224: set_car 0@ health_to 0.0
jump @suicidebomber
 

bonesaw2303

Active member
Joined
Jul 25, 2014
Messages
42
Reaction score
0
pepeelpubero link said:
Try with this:

Code:
{$CLEO .cs}

0000: NOP

:suicidebomber
wait 0 
if and
044B: not actor $PLAYER_ACTOR on_foot
Actor.Driving($PLAYER_ACTOR)
0ADC: test_cheat "BOMB"
jf @suicidebomber
0@ = Actor.CurrentCar($PLAYER_ACTOR)
0224: set_car 0@ health_to 0.0
jump @suicidebomber
You cant compile it
 
Status
Not open for further replies.
Top