CLEO Help Need a help over here...

CLEO related
Status
Not open for further replies.

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
I don't know why it crashed all the time when i joined in SA-MP
ANy ideas ?
Code:
wait 0

0B34: samp register_client_command "carkill" to_label @KILL_01
wait 0

:KILL_01
wait 0 
0B35: 0@
if 0AD4: $not_used = 0@ "%d" 2@
then 1@ = SAMP.GetVehicleHandleBySAMPVehicleID(2@)
   if not Actor.Driving($PLAYER_ACTOR)
    then
     if 056E:   car 1@ defined
       then
        Actor.StorePos($PLAYER_ACTOR, 9@, 10@, 11@)
        wait 200
        072A: put_actor $PLAYER_ACTOR into_car 1@ driverseat 
        Car.Health(1@) = 0.0
        0407: store_coords_to 3@ 4@ 5@ from_car 1@ with_offset 0.0 0.0 -4.0
        0407: store_coords_to 6@ 7@ 8@ from_car 1@ with_offset 0.0 0.0 4.0
        0731: set_car 1@ y_angle_to 180.0 
        wait 200
        Car.PutAt(1@, 3@, 4@, 5@)
        wait 200
        Car.PutAt(1@, 6@, 7@, 8@)
        wait 200
        Car.PutAt(1@, 3@, 4@, 5@)
        wait 200
        Car.PutAt(1@, 6@, 7@, 8@)
        0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 9@ 10@ 11@
        Camera.Restore_WithJumpCut
        else 0AF8: samp add_message_to_chat "{4960F5}[CarKill]: {FFFFFF}Vehicle Is Not {FF0000}Streamed in / Not Available" color 12451840
        end  
    else  0AF8: samp add_message_to_chat "{4960F5}[CarKill]: {FFFFFF}You must {FF0000}Not be DRIVING ! Fool !" color 12451840
   end      
else 0AF8: samp add_message_to_chat "{4960F5}[CarKill]: {FF0000}/ck <CarID> ..." color 12451840
end
SAMP.CmdRet
 

ThermaL

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

0000: NOP
0B34: samp register_client_command "carkill" to_label @KILL
31@ = false

:MAIN
wait 0
if
31@ == true
jf @MAIN     
Actor.StorePos($PLAYER_ACTOR, 3@, 4@, 5@)
0407: store_coords_to 6@ 7@ 8@ from_car 2@ with_offset 0.0 0.0 -4.0
0407: store_coords_to 9@ 10@ 11@ from_car 2@ with_offset 0.0 0.0 4.0
wait 100
036A: put_actor $PLAYER_ACTOR in_car 2@
wait 200
Car.Health(2@) = 0.0
0731: set_car 2@ y_angle_to 180.0
wait 200
Car.PutAt(2@, 6@, 7@, 8@)
wait 200
Car.PutAt(2@, 9@, 10@, 11@)
wait 200
Car.PutAt(2@, 6@, 7@, 8@)
wait 200
Car.PutAt(2@, 9@, 10@, 11@)
wait 200
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 3@ 4@ 5@
Camera.Restore_WithJumpCut
31@ = false
goto @MAIN

:KILL
wait 0
SAMP.IsCommandTyped(0@)
if
0AD4: $not_used = scan_string 0@ format "%d" 1@
jf @SYNTAX
if
not Actor.Driving($PLAYER_ACTOR)
jf @DRIVING
2@ = SAMP.GetVehicleHandleBySAMPVehicleID(1@)
if
056E:  car 2@ defined
jf @INVALID_VEH
31@ = true
SAMP.CmdRet

:SYNTAX
wait 0
0AF8: samp add_message_to_chat "{4960F5}[CarKill]: {FF0000}/carkill <CarID> ..." color 12451840
SAMP.CmdRet

:DRIVING
wait 0
0AF8: samp add_message_to_chat "{4960F5}[CarKill]: {FFFFFF}You must {FF0000}Not be DRIVING ! Fool !" color 12451840
SAMP.CmdRet

:INVALID_VEH
wait 0
0AF8: samp add_message_to_chat "{4960F5}[CarKill]: {FFFFFF}Vehicle Is Not {FF0000}Streamed in / Not Available" color 12451840
SAMP.CmdRet
 

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
TH3RM4L link said:
{$CLEO}

0000: NOP
0B34: samp register_client_command "carkill" to_label @KILL
31@ = false

:MAIN
wait 0
if
31@ == true
jf @MAIN     
Actor.StorePos($PLAYER_ACTOR, 3@, 4@, 5@)
0407: store_coords_to 6@ 7@ 8@ from_car 2@ with_offset 0.0 0.0 -4.0
0407: store_coords_to 9@ 10@ 11@ from_car 2@ with_offset 0.0 0.0 4.0
wait 100
036A: put_actor $PLAYER_ACTOR in_car 2@
wait 200
Car.Health(2@) = 0.0
0731: set_car 2@ y_angle_to 180.0
wait 200
Car.PutAt(2@, 6@, 7@, 8@)
wait 200
Car.PutAt(2@, 9@, 10@, 11@)
wait 200
Car.PutAt(2@, 6@, 7@, 8@)
wait 200
Car.PutAt(2@, 9@, 10@, 11@)
wait 200
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 3@ 4@ 5@
Camera.Restore_WithJumpCut
31@ = false
goto @MAIN

:KILL
wait 0
SAMP.IsCommandTyped(0@)
if
0AD4: $not_used = scan_string 0@ format "%d" 1@
jf @SYNTAX
if
not Actor.Driving($PLAYER_ACTOR)
jf @DRIVING
2@ = SAMP.GetVehicleHandleBySAMPVehicleID(1@)
if
056E:  car 2@ defined
jf @INVALID_VEH
31@ = true
SAMP.CmdRet

:SYNTAX
wait 0
0AF8: samp add_message_to_chat "{4960F5}[CarKill]: {FF0000}/carkill <CarID> ..." color 12451840
SAMP.CmdRet

:DRIVING
wait 0
0AF8: samp add_message_to_chat "{4960F5}[CarKill]: {FFFFFF}You must {FF0000}Not be DRIVING ! Fool !" color 12451840
SAMP.CmdRet

:INVALID_VEH
wait 0
0AF8: samp add_message_to_chat "{4960F5}[CarKill]: {FFFFFF}Vehicle Is Not {FF0000}Streamed in / Not Available" color 12451840
SAMP.CmdRet
@!#)$*()!@()$*!@) ,
P/s: Do you have any idea why my version keep crashing ? Because u fix it in a new way , i just want to know why that my old ver's problem ? 
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
One of the problems is that your script was checking for the things that you typed after /carkill even if you didn't type anything.

0B34: samp register_client_command "carkill" to_label @KILL_01

:KILL_01
wait 0
0B35: 0@ // gets params, but where to get them from?
 

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
TH3RM4L link said:
One of the problems is that your script was checking for the things that you typed after /carkill even if you didn't type anything.

0B34: samp register_client_command "carkill" to_label @KILL_01

:KILL_01
wait 0
0B35: 0@ // gets params, but where to get them from?
So what do u expect to correct that ?
sorry for my stupidity :me_gusta:
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
D.Kay link said:
[quote author=TH3RM4L link=topic=9062.msg52677#msg52677 date=1407318785]
One of the problems is that your script was checking for the things that you typed after /carkill even if you didn't type anything.

0B34: samp register_client_command "carkill" to_label @KILL_01

:KILL_01
wait 0
0B35: 0@ // gets params, but where to get them from?
So what do u expect to correct that ?
sorry for my stupidity :me_gusta:
[/quote]0B34: samp register_client_command "carkill" to_label @KILL_01

:blabla

:kill_01
wait 0
0B35: 0@ // now it will get the params when you typed the command
 

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
TH3RM4L link said:
[quote author=D.Kay link=topic=9062.msg52678#msg52678 date=1407319217]
[quote author=TH3RM4L link=topic=9062.msg52677#msg52677 date=1407318785]
One of the problems is that your script was checking for the things that you typed after /carkill even if you didn't type anything.

0B34: samp register_client_command "carkill" to_label @KILL_01

:KILL_01
wait 0
0B35: 0@ // gets params, but where to get them from?
So what do u expect to correct that ?
sorry for my stupidity :me_gusta:
[/quote]0B34: samp register_client_command "carkill" to_label @KILL_01

:blabla

:kill_01
wait 0
0B35: 0@ // now it will get the params when you typed the command
[/quote]
Now i get it ty. :bawww:
 
Status
Not open for further replies.
Top