CLEO Help [help] Anything wrong ?

CLEO related
Status
Not open for further replies.

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
Code:
0B34: samp register_client_command "vgoto" to_label @VGOTO_268
30@ = 0


:VGOTO_01
wait 0                                 
if 
  30@ == 1 
jf @VGOTO_01
30@ = 0 
SAMP.CmdRet
wait 0
0407: store_coords_to 13@ 14@ 15@ from_car 11@ with_offset 0.0 -1.0 -1.0
wait 100
Actor.PutAt($PLAYER_ACTOR, 13@, 14@, 15@)
jump @VGOTO_01




:VGOTO_268
wait 0 
   SAMP.IsCommandTyped(9@)
if 
0AD4: 10@ = scan_string 9@ format "%d" 12@ 
else_jump @VGOTO_398 
11@ = SAMP.GetVehicleHandleBySAMPVehicleID(12@)
if 
056E:   car 11@ defined
else_jump @VGOTO_456  
30@ = 1 
SAMP.CmdRet
goto @VGOTO_01 

:VGOTO_398
wait 0 
0AF8: samp add_message_to_chat "[D-WARP]: /vgoto <VehicleID>" color -1 
30@ = 0 
SAMP.CmdRet

:VGOTO_456
wait 0 
0AF8: samp add_message_to_chat "[D-WARP]: Vehicle Is Not Streamed in / Not Available" color -1 
SAMP.CmdRet
30@ = 0
goto @VGOTO_01

The Problem is that the line
Store_coords_from_car
and Actor.PutAt .... Seems not to work

-It's just do nothing ...
Pls help , i've tried to fix but still fail.  :bawww:
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
ssssss
:VGOTO_01
wait 0                               
if
  30@ == 1
jf @VGOTO_01
wait 0
0407: store_coords_to 13@ 14@ 15@ from_car 11@ with_offset 0.0 -1.0 -1.0
wait 100
Actor.PutAt($PLAYER_ACTOR, 13@, 14@, 15@)
30@ = 0
SAMP.CmdRet
jump @VGOTO_01
 

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
[member=6677]TH3RM4L[/member]
Still not work.
Here's the full script , i made from 2 commands.
Code:
0B34: samp register_client_command "pgoto" to_label @PGOTO_268
0B34: samp register_client_command "vgoto" to_label @VGOTO_268
31@ = 0 



:PGOTO_01
wait 0                                 
if 
  31@ == 1 
jf @PGOTO_01
31@ = 0 
SAMP.CmdRet
04C4: store_coords_to 5@ 6@ 7@ from_actor 4@ with_offset 0.0 -1.0 -1.0  
wait 0
Actor.PutAt($PLAYER_ACTOR, 5@, 6@, 7@)
29@ = Actor.Angle(4@)
Actor.Angle($PLAYER_ACTOR) = 29@
jump @PGOTO_01




:PGOTO_268
wait 0 
   SAMP.IsCommandTyped(0@)
if 
0AD4: 1@ = scan_string 0@ format "%d %d" 2@ 
else_jump @PGOTO_398 
if 
   SAMP.IsPlayerConnected(2@)
else_jump @PGOTO_519
4@ = SAMP.GetActorHandleByPlayerID(2@)
if 
056D:   actor 4@ defined 
else_jump @PGOTO_456
31@ = 1 
SAMP.CmdRet
goto @PGOTO_01 

:PGOTO_398
wait 0 
0AF8: samp add_message_to_chat "[D-WARP]: /pgoto <PlayerID>" color 12566463  
31@ = 0 
SAMP.CmdRet

:PGOTO_456
wait 0 
0AF8: samp add_message_to_chat "[D-WARP: Player is not streamed in." color 12451840  
31@ = 0 
SAMP.CmdRet
goto @PGOTO_01

:PGOTO_519
wait 0 
0AF8: samp add_message_to_chat "[D-WARP]: Invalid player ID" color 12451840  
SAMP.CmdRet
31@ = 0 
goto @PGOTO_01 


// =--------------- Vgoto -------------------= //
30@ = 0


:VGOTO_01
wait 0                                 
if 
  30@ == 1 
jf @VGOTO_01
30@ = 0 
SAMP.CmdRet
wait 0
0407: store_coords_to 13@ 14@ 15@ from_car 11@ with_offset 0.0 -1.0 -1.0
wait 100
Actor.PutAt($PLAYER_ACTOR, 13@, 14@, 15@)
jump @VGOTO_01




:VGOTO_268
wait 0 
   SAMP.IsCommandTyped(9@)
if 
0AD4: 10@ = scan_string 9@ format "%d" 12@ 
else_jump @VGOTO_398 
11@ = SAMP.GetVehicleHandleBySAMPVehicleID(12@)
if 
056E:   car 11@ defined
else_jump @VGOTO_456  
30@ = 1 
SAMP.CmdRet
goto @VGOTO_01 

:VGOTO_398
wait 0 
0AF8: samp add_message_to_chat "[D-WARP]: /vgoto <VehicleID>" color 12566463  
30@ = 0 
SAMP.CmdRet

:VGOTO_456
wait 0 
0AF8: samp add_message_to_chat "[D-WARP]: Vehicle Is Not Streamed in / Not Available" color 12451840  
SAMP.CmdRet
30@ = 0
goto @VGOTO_01

The first one works (TP to player) , but the second one doesn't

i really need a help over here.
I've tried to fix it for 5 hours , but the result is the same.
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
Code:
:VGOTO
0B35: 9@
if 0AD4: 10@ = 9@ "%d" 12@
then 11@ = SAMP.GetVehicleHandleBySAMPVehicleID(12@)
    if 056E:   car 11@ defined
    then
        0407: store_coords_to 13@ 14@ 15@ from_car 11@ with_offset 0.0 -1.0 -1.0
        Actor.PutAt($PLAYER_ACTOR, 13@, 14@, 15@)
    else 0AF8: samp add_message_to_chat "[D-WARP]: Vehicle Is Not Streamed in / Not Available" color 12451840 
    end
else 0AF8: samp add_message_to_chat "[D-WARP]: /vgoto <VehicleID>" color 12566463 
end
0b43: cmd_ret

Double posting doesn't have any effect either, just wait until someone takes a look.  :imoverit:
 

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
springfield link said:
Code:
:VGOTO
0B35: 9@
if 0AD4: 10@ = 9@ "%d" 12@
then 11@ = SAMP.GetVehicleHandleBySAMPVehicleID(12@)
    if 056E:   car 11@ defined
    then
        0407: store_coords_to 13@ 14@ 15@ from_car 11@ with_offset 0.0 -1.0 -1.0
        Actor.PutAt($PLAYER_ACTOR, 13@, 14@, 15@)
    else 0AF8: samp add_message_to_chat "[D-WARP]: Vehicle Is Not Streamed in / Not Available" color 12451840 
    end
else 0AF8: samp add_message_to_chat "[D-WARP]: /vgoto <VehicleID>" color 12566463 
end
0b43: cmd_ret

Double posting doesn't have any effect either, just wait until someone takes a look.  :imoverit:
Thanks sprgfld , it's working omg !  :somuchwin:
 
Status
Not open for further replies.
Top