почему крашит?

smokingdope2016

Участник
Автор темы
39
2
по идее должно вводить пароль при входе, но меня крашит, почему?
Код:
{$CLEO}   
{$INCLUDE SF}
{$USE INI}   
{$NOSOURCE}
0000:
thread 'autolog'
while not SAMP.Available()
wait 0
end

:Noname_917
0001: wait 350 ms
if
0AAB:   file_exists "CLEO\autolog.ini"
004D: jump_if_false @Noname_900
0AF4: 5@v = read_string_from_ini_file "cleo\autolog.ini" section "password" key "pass"
jump @1

:Noname_900
0AF5: write_string 10@ to_ini_file "cleo\autolog.ini" section "password" key "pass"
0006: 10@ = "pass"
0AF8: samp add_message_to_chat "[autulog] ini not founded." color -1

:1
if
0B4C:  samp is_dialog_active 32700
jf @1
0BC9: samp send_dialog_response dialog 32700 button 1 listitem 3@ input 5@v
jump @1
 
Решение
Код:
{$CLEO} 
{$INCLUDE SF}
{$USE INI} 
{$NOSOURCE}
0000:
thread 'autolog'
while not SAMP.Available()
wait 0
end

:Noname_917
0001: wait 350 ms
0ac8: alloc 5@ size 32
if
0AAB:   file_exists "CLEO\autolog.ini"
004D: jump_if_false @Noname_900
0AF4: 5@ = read_string_from_ini_file "cleo\autolog.ini" section "password" key "pass"
0AC9: free_allocated_memory 5@
jump @1

:Noname_900
0ac8: alloc 10@ size 32
0AD3: 10@ = format "2"
0AF5: write_string 10@ to_ini_file "cleo\autolog.ini" section "password" key "pass"
0AF8: samp add_message_to_chat "[autulog] ini not founded." color -1
0AC9: free_allocated_memory 10@


:1
wait 0
if
0B4C:  samp is_dialog_active 32700
jf @1
0BC9: samp send_dialog_response dialog 32700 button 1 listitem 3@ input 5@v
jump...

smokingdope2016

Участник
Автор темы
39
2
Минут через 20 запущу у себя на ПК этот скрипт
Код:
{$CLEO}  
{$INCLUDE SF}
{$USE INI}  
{$NOSOURCE}
0000:
thread 'autolog'
while not SAMP.Available()
wait 0
end

:Noname_917
0001: wait 350 ms
0ac8: alloc 5@ size 32
if
0AAB:   file_exists "CLEO\autolog.ini"
004D: jump_if_false @Noname_900
0AF4: 5@ = read_string_from_ini_file "cleo\autolog.ini" section "password" key "pass"
0AC9: free_allocated_memory 5@
jump @1

:Noname_900
0ac8: alloc 10@ size 32
0AD3: 10@ = format "2"
0AF5: write_string 10@ to_ini_file "cleo\autolog.ini" section "password" key "pass"
0AF8: samp add_message_to_chat "[autulog] ini not founded." color -1
0AC9: free_allocated_memory 10@


:1
wait 0
if
0B4C:  samp is_dialog_active 32700
jf @1
0BC9: samp send_dialog_response dialog 32700 button 1 listitem 3@ input 5@v
jump @1
 

Bili Djin

Активный
137
67
Код:
{$CLEO} 
{$INCLUDE SF}
{$USE INI} 
{$NOSOURCE}
0000:
thread 'autolog'
while not SAMP.Available()
wait 0
end

:Noname_917
0001: wait 350 ms
0ac8: alloc 5@ size 32
if
0AAB:   file_exists "CLEO\autolog.ini"
004D: jump_if_false @Noname_900
0AF4: 5@ = read_string_from_ini_file "cleo\autolog.ini" section "password" key "pass"
0AC9: free_allocated_memory 5@
jump @1

:Noname_900
0ac8: alloc 10@ size 32
0AD3: 10@ = format "2"
0AF5: write_string 10@ to_ini_file "cleo\autolog.ini" section "password" key "pass"
0AF8: samp add_message_to_chat "[autulog] ini not founded." color -1
0AC9: free_allocated_memory 10@


:1
wait 0
if
0B4C:  samp is_dialog_active 32700
jf @1
0BC9: samp send_dialog_response dialog 32700 button 1 listitem 3@ input 5@v
jump @1
Лс зайди
 
  • Нравится
Реакции: smokingdope2016