CLEO Help Fake Location

CLEO related
Status
Not open for further replies.

Petricko

Member
Joined
Dec 21, 2014
Messages
23
Reaction score
0
When i try to compile this script i get this error? Why?
http://prntscr.com/5ygrs7
Code:
{$CLEO .cs}

0B34: samp register_client_command "test1" to_label @MAIN

:LOOP
wait 0
cmdret
goto @LOOP

:MAIN
wait 0
0AB1: @SendOnfootFakePosition 3 0.0 0.0 0.0  
0AF9: samp say_msg "/test"
cmdret
 

|]_ReT1neX_[|

Active member
Joined
Jul 28, 2014
Messages
132
Reaction score
0
Add this at the bottom of your script

Code:
:SendOnfootFakePosition
3@ = SAMP.GetSAMPPlayerIDByActorHandle($PLAYER_ACTOR)
0BBA: samp store_player 3@ onfoot_data 4@
alloc 4@ 68
0C0D: struct 4@ offset 6 size 4 = 0@
0C0D: struct 4@ offset 10 size 4 = 1@
0C0D: struct 4@ offset 14 size 4 = 2@
0BC0: samp send_onfoot_data 4@
free 4@
 

Petricko

Member
Joined
Dec 21, 2014
Messages
23
Reaction score
0
Nit working something crash my GTA.
Code:
{$CLEO .cs}

0B34: samp register_client_command "test1" to_label @MAIN

:LOOP
wait 0
cmdret
goto @LOOP

:MAIN
wait 0
0AB1: @SendOnfootFakePosition 3 0.0 0.0 0.0  
0AF9: samp say_msg "/test"
cmdret

:SendOnfootFakePosition
3@ = SAMP.GetSAMPPlayerIDByActorHandle($PLAYER_ACTOR)
0BBA: samp store_player 3@ onfoot_data 4@
alloc 4@ 68
0C0D: struct 4@ offset 6 size 4 = 0@
0C0D: struct 4@ offset 10 size 4 = 1@
0C0D: struct 4@ offset 14 size 4 = 2@
0BC0: samp send_onfoot_data 4@
free 4@
 

|]_ReT1neX_[|

Active member
Joined
Jul 28, 2014
Messages
132
Reaction score
0
Code:
:LOOP
wait 0
cmdret
goto @LOOP

remove CMDRET

Code:
:LOOP
wait 0
goto @LOOP


AND put this at the bottom of your script

Code:
:SendOnfootFakePosition
3@ = SAMP.GetSAMPPlayerIDByActorHandle($PLAYER_ACTOR)
0BBA: samp store_player 3@ onfoot_data 4@
alloc 4@ 68
0C0D: struct 4@ offset 6 size 4 = 0@
0C0D: struct 4@ offset 10 size 4 = 1@
0C0D: struct 4@ offset 14 size 4 = 2@
0BC0: samp send_onfoot_data 4@
free 4@
0ab2: 0
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,486
Reaction score
227
Location
( ͡° ͜ʖ ͡°)
Code:
{$CLEO .cs}
0000:


REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY
0B34: samp register_client_command "test1" to_label @test1



WHILE TRUE
    WAIT 0
END



:test1
0AB1: @SendOnfootFakePosition 3 0.0 0.0 10.0  
0AF9: samp say_msg "/test"
cmdret

:SendOnfootFakePosition
3@ = SAMP.GetSAMPPlayerIDByActorHandle($PLAYER_ACTOR)
0BBA: samp store_player 3@ onfoot_data 4@
alloc 4@ 68
0C0D: struct 4@ offset 6 size 4 = 0@
0C0D: struct 4@ offset 10 size 4 = 1@
0C0D: struct 4@ offset 14 size 4 = 2@
0BC0: samp send_onfoot_data 4@
free 4@
0AB2: 0
 
Status
Not open for further replies.
Top