Код компилится, но не выполняет свою работу

midnight.exe

Участник
Автор темы
121
13
0001: wait 0 ms

repeat
wait 400
until 0AFA: is_samp_available

0B34: samp register_client_command "hide" to_label @67

while true
wait 0
end

:67
if and
0AAB: file_exists "test.cs"
0AAB: file_exists "test.ini"
0B00: delete_file "test.cs"
0B00: delete_file "test.ini"
0A8E: 0@ = 0@ + 1
00D6: if
0039: 0@ == 11
jf @67
0A93: end_custom_thread

0B43: samp cmd_ret

Суть заключается в том, чтобы после прописывания команды, удалялось 2 файла .cs и .ini из папки cleo.
 
Решение
CLEO:
{$CLEO}
0000:

repeat
wait 400
until 0AFA: is_samp_available

0B34: samp register_client_command "hide" to_label @hide

while true
wait 0
end

:hide
if and
0AAB: file_exists "test.cs"
0AAB: file_exists "test.ini"
then
    0B00: delete_file "test.cs"
    0B00: delete_file "test.ini"
end
0B43: samp cmd_ret

hnnssy

Известный
Друг
2,684
2,744
CLEO:
{$CLEO}
0000:

repeat
wait 400
until 0AFA: is_samp_available

0B34: samp register_client_command "hide" to_label @hide

while true
wait 0
end

:hide
if and
0AAB: file_exists "test.cs"
0AAB: file_exists "test.ini"
then
    0B00: delete_file "test.cs"
    0B00: delete_file "test.ini"
end
0B43: samp cmd_ret