CLEO Help Crashing after I input command

CLEO related
Status
Not open for further replies.

KillerZ

Active member
Joined
Apr 6, 2014
Messages
73
Reaction score
0
So this is a part of a script with hacks and whenever I type /god it immediately crashes. If the person willing to help needs the script to see how this part of code causes problems I'll pm it to them.

Code:
0B34: samp register_client_command "god" to_label [member=6130]goD[/member]

Code:
WHILE TRUE
wait 0
if 0@ == 1
then
    044B:   actor $PLAYER_ACTOR on_foot
    Actor.SetImmunities($PLAYER_ACTOR, 1, 1, 1, 1, 1) 
      
    0449:   actor $PLAYER_ACTOR in_a_car  
    1@ = Actor.CurrentCar($PLAYER_ACTOR)
    Car.DoorStatus(1@) = 0
    09F6: set_actor $PLAYER_ACTOR unjackable_through_driver_seat 0 
    0A30: repair_car 1@ 
    03F5: set_car 1@ apply_damage_rules 0 
    Car.SetImmunities(1@, 1, 1, 1, 1, 1)
    053F: set_car 1@ tires_vulnerability 0
else
    044B:   actor $PLAYER_ACTOR on_foot
    Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0) 
      
    0449:   actor $PLAYER_ACTOR in_a_car  
    2@ = Actor.CurrentCar($PLAYER_ACTOR) 
    03F5: set_car 2@ apply_damage_rules 1 
    Car.SetImmunities(2@, 0, 0, 0, 0, 0)
    053F: set_car 2@ tires_vulnerability 1
end
end

:god
0B12: 0@ = 0@ XOR 1
if 0@ == 1
then 
    0ACD: show_text_highpriority "Invulnerability ~G~ON" time 3000
else 
    0ACD: show_text_highpriority "Invulnerability ~R~OFF" time 3000  
end
SAMP.CmdRet()
 

KillerZ

Active member
Joined
Apr 6, 2014
Messages
73
Reaction score
0
I don't crash if I use the command while in a vehicle, I only crash if I input command while on foot. Anyway you can edit it?

Code:
:god
0B12: 0@ = 0@ XOR 1
if 0@ == 1
then
044B:   actor $PLAYER_ACTOR on_foot
    Actor.SetImmunities($PLAYER_ACTOR, 1, 1, 1, 1, 1) 
      
    0449:   actor $PLAYER_ACTOR in_a_car  
    1@ = Actor.CurrentCar($PLAYER_ACTOR)
    Car.DoorStatus(1@) = 0
    09F6: set_actor $PLAYER_ACTOR unjackable_through_driver_seat 0 
    0A30: repair_car 1@ 
    03F5: set_car 1@ apply_damage_rules 0 
    Car.SetImmunities(1@, 1, 1, 1, 1, 1)
    053F: set_car 1@ tires_vulnerability 0 
    0ACD: show_text_highpriority "Invulnerability ~G~ON" time 3000
else 
    044B:   actor $PLAYER_ACTOR on_foot
    Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0) 
      
    0449:   actor $PLAYER_ACTOR in_a_car  
    1@ = Actor.CurrentCar($PLAYER_ACTOR) 
    03F5: set_car 1@ apply_damage_rules 1 
    Car.SetImmunities(1@, 0, 0, 0, 0, 0)
    053F: set_car 1@ tires_vulnerability 1
    0ACD: show_text_highpriority "Invulnerability ~R~OFF" time 3000  
end
SAMP.CmdRet()
 
Status
Not open for further replies.
Top