CLEO Help Help me

CLEO related
Status
Not open for further replies.

wisraul

Member
Joined
May 21, 2017
Messages
15
Reaction score
0
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 

:NONAME_2
wait 0 
if 
0AB0:   key_pressed 122 
then
018A: 2@ = create_checkpoint_at -118.51 -1216.929  9.48
wait 10000
06D6: disable_racing_checkpoint 2@
jump @NONAME_2
end
fix my code, i want create checkpoint on radar map when i press F11
But not good, help
 

bladero

Active member
Joined
Jan 3, 2017
Messages
73
Reaction score
0
here you go just use variables

Code:
{$CLEO .cs}
0000: NOP
 
wait 0

:NONAME_2
wait 0 
if 
0AB0:   key_pressed 122 
then
Actor.StorePos($PLAYER_ACTOR, 14@, 15@, 16@)
018A: 1@ = create_checkpoint_at 14@ 15@ 16@
else 
goto @NONAME_2
end
 

wisraul

Member
Joined
May 21, 2017
Messages
15
Reaction score
0
bladero said:
here you go just use variables

Code:
{$CLEO .cs}
0000: NOP
 
wait 0

:NONAME_2
wait 0 
if 
0AB0:   key_pressed 122 
then
Actor.StorePos($PLAYER_ACTOR, 14@, 15@, 16@)
018A: 1@ = create_checkpoint_at 14@ 15@ 16@
else 
goto @NONAME_2
end

not working
 

wisraul

Member
Joined
May 21, 2017
Messages
15
Reaction score
0
Bladero said:
i just tested the script and its showing blip on radar. Just paste code and compile script...
I want add Coordinates on samp say smg, after showing blip on radar
How to create it
 

bladero

Active member
Joined
Jan 3, 2017
Messages
73
Reaction score
0
wisraul said:
Bladero said:
i just tested the script and its showing blip on radar. Just paste code and compile script...
I want add Coordinates on samp say smg, after showing blip on radar
How to create it

just use 3 floats in say msg string and assign them to variables 14@ 15@ 16@
 

wisraul

Member
Joined
May 21, 2017
Messages
15
Reaction score
0
bladero said:
wisraul said:
Bladero said:
i just tested the script and its showing blip on radar. Just paste code and compile script...
I want add Coordinates on samp say smg, after showing blip on radar
How to create it

just use 3 floats in say msg string and assign them to variables 14@ 15@ 16@
Code:
{$CLEO .cs}
0000: NOP

wait 0

:NONAME_2
wait 0 
if 
0AF9: samp say_msg "%s %s %s" 14@ 15@ 16@
then
018A: 1@ = create_checkpoint_at 14@ 15@ 16@
else 
goto @NONAME_2
end
Like it ? edit for me
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,116
Solutions
5
Reaction score
882
Location
Lithuania
wisraul said:
bladero said:
wisraul said:
Bladero said:
i just tested the script and its showing blip on radar. Just paste code and compile script...
I want add Coordinates on samp say smg, after showing blip on radar
How to create it

just use 3 floats in say msg string and assign them to variables 14@ 15@ 16@
Code:
{$CLEO .cs}
0000: NOP

wait 0

:NONAME_2
wait 0 
if 
0AF9: samp say_msg "%s %s %s" 14@ 15@ 16@
then
018A: 1@ = create_checkpoint_at 14@ 15@ 16@
else 
goto @NONAME_2
end
Like it ? edit for me

Not %s , but %f
And you do wrong ...
[shcode=cpp]
{$CLEO .cs}
0000:

REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 

0B34: samp register_client_command "cp" to_label @MiniMapCP

WHILE TRUE
    WAIT 0 
END

:MiniMapCP
0B35: samp 0@ = get_last_command_params

IF 
0AD4: $NOT_USED = scan_string 0@ format "%f %f %f" 14@ 15@ 16@
THEN
018A: 1@ = create_checkpoint_at 14@ 15@ 16@
END

0B43:
   
[/shcode]
Use explane: /cp -118.51 -1216.929  9.48
 

wisraul

Member
Joined
May 21, 2017
Messages
15
Reaction score
0
bladero said:
keep Actor storepos and replace %s with %f because you need floats not strings

Parazitas said:
wisraul said:
bladero said:
wisraul said:
Bladero said:
i just tested the script and its showing blip on radar. Just paste code and compile script...
I want add Coordinates on samp say smg, after showing blip on radar
How to create it

just use 3 floats in say msg string and assign them to variables 14@ 15@ 16@
Code:
{$CLEO .cs}
0000: NOP

wait 0

:NONAME_2
wait 0 
if 
0AF9: samp say_msg "%s %s %s" 14@ 15@ 16@
then
018A: 1@ = create_checkpoint_at 14@ 15@ 16@
else 
goto @NONAME_2
end
Like it ? edit for me

Not %s , but %f
And you do wrong ...
[shcode=cpp]
{$CLEO .cs}
0000:

REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 

0B34: samp register_client_command "cp" to_label @MiniMapCP

WHILE TRUE
    WAIT 0 
END

:MiniMapCP
0B35: samp 0@ = get_last_command_params

IF 
0AD4: $NOT_USED = scan_string 0@ format "%f %f %f" 14@ 15@ 16@
THEN
018A: 1@ = create_checkpoint_at 14@ 15@ 16@
END

0B43:
   
[/shcode]
Use explane: /cp -118.51 -1216.929  9.48
tks you
 

wisraul

Member
Joined
May 21, 2017
Messages
15
Reaction score
0
Parazitas said:
Not %s , but %f
And you do wrong ...
[shcode=cpp]
{$CLEO .cs}
0000:

REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 

0B34: samp register_client_command "cp" to_label @MiniMapCP

WHILE TRUE
    WAIT 0 
END

:MiniMapCP
0B35: samp 0@ = get_last_command_params

IF 
0AD4: $NOT_USED = scan_string 0@ format "%f %f %f" 14@ 15@ 16@
THEN
018A: 1@ = create_checkpoint_at 14@ 15@ 16@
END

0B43:
   
[/shcode]
Use explane: /cp -118.51 -1216.929  9.48

How to deletel checkpoint
0164: remove_blip 1@
 
Status
Not open for further replies.
Top