CLEO Help Error didn't work

CLEO related
Status
Not open for further replies.

benjas09

Member
Joined
Jun 11, 2014
Messages
6
Reaction score
0
Hello


Code:
{$CLEO .cs}
THREAD "C"
0000:

wait 2500

:LOAD
wait 0
if
Player.Defined(0)
jf @LOAD
if
  8AF7: get_samp_base_to 0@
then
    0A93: end_custom_thread
end
repeat
    wait 400
until 0AFA: is_samp_structures_available






:START

wait 0
if 
key_down 49
jf @START
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @START
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (START)" 1@
wait 1000
0AF8: samp add_message_to_chat "(START) %s" color 0xFFFFFF 2@
jf @START
wait 1000
jump @START


:STARTONE
wait 0
if 
key_down 50
jf @STARTONE
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTONE
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTONE)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTONE) SOBRE %s" color 0xFFFFFF 2@
jf @STARTONE
wait 1000
jump @STARTONE


I have this code, the "start" work and "startone" didnt work.
Sorry for my english

Thanks
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Code:
:START
wait 0
if 
key_down 49
jf @STARTONE
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @START
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (START)" 1@
wait 1000
0AF8: samp add_message_to_chat "(START) %s" color 0xFFFFFF 2@
jf @START
wait 1000
jump @START


:STARTONE
wait 0
if 
key_down 50
jf @START
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTONE
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTONE)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTONE) SOBRE %s" color 0xFFFFFF 2@
jf @STARTONE
wait 1000
jump @STARTONE
You didn't use jf correctly to make the both labels work.
 

benjas09

Member
Joined
Jun 11, 2014
Messages
6
Reaction score
0
TH3RM4L link said:
Code:
:START
wait 0
if 
key_down 49
jf @STARTONE
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @START
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (START)" 1@
wait 1000
0AF8: samp add_message_to_chat "(START) %s" color 0xFFFFFF 2@
jf @START
wait 1000
jump @START


:STARTONE
wait 0
if 
key_down 50
jf @START
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTONE
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTONE)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTONE) SOBRE %s" color 0xFFFFFF 2@
jf @STARTONE
wait 1000
jump @STARTONE
You didn't use jf correctly to make the both labels work.
Thanks, this code work.



I have this other code, how to fix?

Code:
{$CLEO .cs}
THREAD "C"
0000:

wait 2500



:LOAD
wait 0
if
Player.Defined(0)
jf @LOAD
if
  8AF7: get_samp_base_to 0@
then
    0A93: end_custom_thread
end
repeat
    wait 400
until 0AFA: is_samp_structures_available


:START
wait 0
if 
key_down 49
jf @STARTONE
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @START
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (START)" 1@
wait 1000
0AF8: samp add_message_to_chat "(START) %s" color 0xFFFFFF 2@
jf @START
wait 1000
jump @START


:STARTONE
wait 0
if 
key_down 50
jf @START
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTONE
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTONE)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTONE) SOBRE %s" color 0xFFFFFF 2@
jf @STARTONE
wait 1000
jump @STARTONE 

:STARTDOS
wait 0
if 
key_down 50
jf @START
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTDOS
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTDOS)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTDOS) SOBRE %s" color 0xFFFFFF 2@
jf @STARTDOS
wait 1000
jump @STARTDOS

:STARTTRES
wait 0
if 
key_down 50
jf @START
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTTRES
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTTRES)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTTRES) SOBRE %s" color 0xFFFFFF 2@
jf @STARTTRES
wait 1000
jump @STARTTRES

:STARTCUATRO
wait 0
if 
key_down 50
jf @START
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTCUATRO
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTCUATRO)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTCUATRO) SOBRE %s" color 0xFFFFFF 2@
jf @STARTCUATRO
wait 1000
jump @STARTCUATRO

:STARTCINCO
wait 0
if 
key_down 50
jf @START
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTCINCO
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTCINCO)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTCINCO) SOBRE %s" color 0xFFFFFF 2@
jf @STARTCINCO
wait 1000
jump @STARTCINCO

:STARTSEIS
wait 0
if 
key_down 50
jf @START
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTSEIS
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTSEIS)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTSEIS) SOBRE %s" color 0xFFFFFF 2@
jf @STARTSEIS
wait 1000
jump @STARTSEIS

Thanks
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Code:
:START
wait 0
if 
key_down 49
jf @STARTONE
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @START
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (START)" 1@
wait 1000
0AF8: samp add_message_to_chat "(START) %s" color 0xFFFFFF 2@
jf @START
wait 1000
jump @START


:STARTONE
wait 0
if 
key_down 50
jf @STARTDOS
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTONE
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTONE)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTONE) SOBRE %s" color 0xFFFFFF 2@
jf @STARTONE
wait 1000
jump @STARTONE 

:STARTDOS
wait 0
if 
key_down 50
jf @STARTTRES
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTDOS
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTDOS)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTDOS) SOBRE %s" color 0xFFFFFF 2@
jf @STARTDOS
wait 1000
jump @STARTDOS

:STARTTRES
wait 0
if 
key_down 50
jf @STARTCUATRO
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTTRES
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTTRES)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTTRES) SOBRE %s" color 0xFFFFFF 2@
jf @STARTTRES
wait 1000
jump @STARTTRES

:STARTCUATRO
wait 0
if 
key_down 50
jf @STARTCINCO
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTCUATRO
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTCUATRO)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTCUATRO) SOBRE %s" color 0xFFFFFF 2@
jf @STARTCUATRO
wait 1000
jump @STARTCUATRO

:STARTCINCO
wait 0
if 
key_down 50
jf @STARTSEIS
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTCINCO
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTCINCO)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTCINCO) SOBRE %s" color 0xFFFFFF 2@
jf @STARTCINCO
wait 1000
jump @STARTCINCO

:STARTSEIS
wait 0
if 
key_down 50
jf @START
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTSEIS
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTSEIS)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTSEIS) SOBRE %s" color 0xFFFFFF 2@
jf @STARTSEIS
wait 1000
jump @STARTSEIS
 

benjas09

Member
Joined
Jun 11, 2014
Messages
6
Reaction score
0
TH3RM4L link said:
Code:
:START
wait 0
if 
key_down 49
jf @STARTONE
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @START
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (START)" 1@
wait 1000
0AF8: samp add_message_to_chat "(START) %s" color 0xFFFFFF 2@
jf @START
wait 1000
jump @START


:STARTONE
wait 0
if 
key_down 50
jf @STARTDOS
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTONE
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTONE)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTONE) SOBRE %s" color 0xFFFFFF 2@
jf @STARTONE
wait 1000
jump @STARTONE 

:STARTDOS
wait 0
if 
key_down 50
jf @STARTTRES
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTDOS
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTDOS)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTDOS) SOBRE %s" color 0xFFFFFF 2@
jf @STARTDOS
wait 1000
jump @STARTDOS

:STARTTRES
wait 0
if 
key_down 50
jf @STARTCUATRO
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTTRES
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTTRES)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTTRES) SOBRE %s" color 0xFFFFFF 2@
jf @STARTTRES
wait 1000
jump @STARTTRES

:STARTCUATRO
wait 0
if 
key_down 50
jf @STARTCINCO
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTCUATRO
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTCUATRO)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTCUATRO) SOBRE %s" color 0xFFFFFF 2@
jf @STARTCUATRO
wait 1000
jump @STARTCUATRO

:STARTCINCO
wait 0
if 
key_down 50
jf @STARTSEIS
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTCINCO
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTCINCO)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTCINCO) SOBRE %s" color 0xFFFFFF 2@
jf @STARTCINCO
wait 1000
jump @STARTCINCO

:STARTSEIS
wait 0
if 
key_down 50
jf @START
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @STARTSEIS
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "HOLA %d (STARTSEIS)" 1@
wait 1000
0AF8: samp add_message_to_chat "(STARTSEIS) SOBRE %s" color 0xFFFFFF 2@
jf @STARTSEIS
wait 1000
jump @STARTSEIS
Thanks!!  :somuchwin:

27d4ujD.png


I have other error, the ID / NickName didn't work
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Go to SB tools - option - formats - lower right corner - case converting - select 'as is', recompile then try again.
 
Status
Not open for further replies.
Top