CLEO Help why is there no delay?

CLEO related

florezyatina

Member
Joined
Nov 3, 2021
Messages
17
Reaction score
0
Location
123
{$CLEO}
{$INCLUDE SF}
{$NOSOURCE}
0000:
while not SAMP.Available()
wait 0
end


0B34: samp register_client_command "full" to_label @full
0B34: samp register_client_command "testend" to_label @end
0AF8: samp add_message_to_chat "{F9F9F9}autofull loaded."
0BDE: pause_thread 0

:full
while true
wait 0
0ACD: show_text_highpriority "script on" time 1000
wait 500
02EB: restore_camera_with_jumpcut
wait 500
actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
wait 1000
00A1: put_actor $PLAYER_ACTOR at -1308.0187 511.5915 11.1953
wait 1000
00A1: put_actor $PLAYER_ACTOR at 0@ 1@ 2@
02CE: 2@ = ground_z_at 0@ 1@ 500.0
wait 1000
0AF9: samp say_msg "/putammo"
0B43: samp cmd_ret

:end
0A93: end_custom_thread
0B43: samp cmd_ret
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
In command wait doesn't work...
PHP:
{$CLEO}
{$INCLUDE SF}
{$NOSOURCE}
0000:
while not SAMP.Available()
wait 0
end

0B34: samp register_client_command "full" to_label @full
0B34: samp register_client_command "testend" to_label @end

0AF8: samp add_message_to_chat "{F9F9F9}autofull loaded."

while true
wait 0

if 31@ == true
then
    0ACD: show_text_highpriority "script on" time 1000
    wait 500
    02EB: restore_camera_with_jumpcut
    wait 500
    actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
    wait 1000
    00A1: put_actor $PLAYER_ACTOR at -1308.0187 511.5915 11.1953
    wait 1000
    00A1: put_actor $PLAYER_ACTOR at 0@ 1@ 2@
    02CE: 2@ = ground_z_at 0@ 1@ 500.0
    wait 1000
    0AF9: samp say_msg "/putammo"
    31@ = false
end

end

:full
31@ = true
0B43: samp cmd_ret

:end
0A93: end_custom_thread
0B43: samp cmd_ret
 

florezyatina

Member
Joined
Nov 3, 2021
Messages
17
Reaction score
0
Location
123
In command wait doesn't work...
PHP:
{$CLEO}
{$INCLUDE SF}
{$NOSOURCE}
0000:
while not SAMP.Available()
wait 0
end

0B34: samp register_client_command "full" to_label @full
0B34: samp register_client_command "testend" to_label @end

0AF8: samp add_message_to_chat "{F9F9F9}autofull loaded."

while true
wait 0

if 31@ == true
then
    0ACD: show_text_highpriority "script on" time 1000
    wait 500
    02EB: restore_camera_with_jumpcut
    wait 500
    actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
    wait 1000
    00A1: put_actor $PLAYER_ACTOR at -1308.0187 511.5915 11.1953
    wait 1000
    00A1: put_actor $PLAYER_ACTOR at 0@ 1@ 2@
    02CE: 2@ = ground_z_at 0@ 1@ 500.0
    wait 1000
    0AF9: samp say_msg "/putammo"
    31@ = false
end

end

:full
31@ = true
0B43: samp cmd_ret

:end
0A93: end_custom_thread
0B43: samp cmd_ret
why /full doesn't work?
 
Top