Вопросы по CLEO-скриптингу

xSpiridon

Известный
74
21
Как осуществить выполнение двух и более одновременных бесконечных циклов в одном скрипте?
 

Qsany

Потрачен
464
147
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
upload_2018-8-13_14-44-44.png


CLEO:
{$CLEO}
0000:

:1
wait 0
0AFA:  is_samp_available
jf @1
chatmsg "---------------" 0xF330B3
chatmsg "{F3304C}/hpc {EFF330}x {5AF330}y{BDBDBD} - ðàçìåñòèòü èíäèêàòîð ({EFF330}x, {5AF330}y{BDBDBD})"
chatmsg "{F3304C}/hph {BDBDBD}ðàçìåð øðèôòà({2FC5CA}20 íàïðèìåð{BDBDBD})"
chatmsg "{D850FB}Version 0.1 {50FB54}Thread™"
chatmsg "---------------" 0xF330B3
0AC8: 3@ = allocate_memory_size 256    
0AC8: 23@ = allocate_memory_size 256              
              0B34: samp register_client_command "hpc" to_label @settcoord
              0B34: samp register_client_command "hph" to_label @settheight             
              0AF0: 12@ = get_int_from_ini_file "cleo\HP.ini" section "Main" key "Height"
              0B6D: render 1@ = create_font "Arial black" height 12@ flags 12
             

:2
wait 0
     0B61:  samp is_local_player_spawned
jf @2


:src
wait 0
     0226: 2@ = actor $Player_Actor health
     0AD3: 3@ = format "{ffffff}%d {6461E9}hp" 2@
         0AF0: 8@ = get_int_from_ini_file "cleo\HP.ini" section "Main" key "cord-x"
         0AF0: 9@ = get_int_from_ini_file "cleo\HP.ini" section "Main" key "cord-y"        
0B6F: render font 1@ draw_text 3@ pos 8@ 9@ color 0xFFFFF2CF
jump @src

:settcoord
wait 0
SAMP.IsCommandTyped(4@)
    if 0AD4: 5@ = scan_string 4@ format "%d%d" 6@ 7@ //IF and SET
    jf @error
    0AF1: write_int 6@ to_ini_file "cleo\HP.ini" section "Main" key "cord-x"
    0AF1: write_int 7@ to_ini_file "cleo\HP.ini" section "Main" key "cord-y"
    chatmsg "Êîðäèíàòû óñòàíîâëåíû" 0x30F39C
    0B43: samp cmd_ret

:settheight
wait 0
SAMP.IsCommandTyped(15@)
    if 0AD4: 14@ = scan_string 15@ format "%d" 16@ //IF and SET
    jf @error
    0AF1: write_int 16@ to_ini_file "cleo\HP.ini" section "Main" key "Height"
    chatmsg "Âûñîòà óñòàíîâëåíà" 0x30F39C
    0AF0: 12@ = get_int_from_ini_file "cleo\HP.ini" section "Main" key "Height"
    0B6D: render 1@ = create_font "Comic sans MS" height 12@ flags 12
    0B43: samp cmd_ret


:error
wait 0
     chatmsg "Íåïðàâèëüíî ââåäåíû äàííûå" 0xBD2828
     0B43: samp cmd_ret
Че за хуйня?
 

клешь рояль

Известный
1,255
550
Посмотреть вложение 17545

CLEO:
{$CLEO}
0000:

:1
wait 0
0AFA:  is_samp_available
jf @1
chatmsg "---------------" 0xF330B3
chatmsg "{F3304C}/hpc {EFF330}x {5AF330}y{BDBDBD} - ðàçìåñòèòü èíäèêàòîð ({EFF330}x, {5AF330}y{BDBDBD})"
chatmsg "{F3304C}/hph {BDBDBD}ðàçìåð øðèôòà({2FC5CA}20 íàïðèìåð{BDBDBD})"
chatmsg "{D850FB}Version 0.1 {50FB54}Thread™"
chatmsg "---------------" 0xF330B3
0AC8: 3@ = allocate_memory_size 256   
0AC8: 23@ = allocate_memory_size 256             
              0B34: samp register_client_command "hpc" to_label @settcoord
              0B34: samp register_client_command "hph" to_label @settheight            
              0AF0: 12@ = get_int_from_ini_file "cleo\HP.ini" section "Main" key "Height"
              0B6D: render 1@ = create_font "Arial black" height 12@ flags 12
            

:2
wait 0
     0B61:  samp is_local_player_spawned
jf @2


:src
wait 0
     0226: 2@ = actor $Player_Actor health
     0AD3: 3@ = format "{ffffff}%d {6461E9}hp" 2@
         0AF0: 8@ = get_int_from_ini_file "cleo\HP.ini" section "Main" key "cord-x"
         0AF0: 9@ = get_int_from_ini_file "cleo\HP.ini" section "Main" key "cord-y"       
0B6F: render font 1@ draw_text 3@ pos 8@ 9@ color 0xFFFFF2CF
jump @src

:settcoord
wait 0
SAMP.IsCommandTyped(4@)
    if 0AD4: 5@ = scan_string 4@ format "%d%d" 6@ 7@ //IF and SET
    jf @error
    0AF1: write_int 6@ to_ini_file "cleo\HP.ini" section "Main" key "cord-x"
    0AF1: write_int 7@ to_ini_file "cleo\HP.ini" section "Main" key "cord-y"
    chatmsg "Êîðäèíàòû óñòàíîâëåíû" 0x30F39C
    0B43: samp cmd_ret

:settheight
wait 0
SAMP.IsCommandTyped(15@)
    if 0AD4: 14@ = scan_string 15@ format "%d" 16@ //IF and SET
    jf @error
    0AF1: write_int 16@ to_ini_file "cleo\HP.ini" section "Main" key "Height"
    chatmsg "Âûñîòà óñòàíîâëåíà" 0x30F39C
    0AF0: 12@ = get_int_from_ini_file "cleo\HP.ini" section "Main" key "Height"
    0B6D: render 1@ = create_font "Comic sans MS" height 12@ flags 12
    0B43: samp cmd_ret


:error
wait 0
     chatmsg "Íåïðàâèëüíî ââåäåíû äàííûå" 0xBD2828
     0B43: samp cmd_ret
Че за хуйня?
Мб нету опкодов на скомпилированный
 

Вложения

  • 423324.cs
    847 байт · Просмотры: 4
  • Нравится
Реакции: Qsany

D3.Pheonix

🎹
Модератор
2,867
1,642
Посмотреть вложение 17545

CLEO:
{$CLEO}
0000:

:1
wait 0
0AFA:  is_samp_available
jf @1
chatmsg "---------------" 0xF330B3
chatmsg "{F3304C}/hpc {EFF330}x {5AF330}y{BDBDBD} - ðàçìåñòèòü èíäèêàòîð ({EFF330}x, {5AF330}y{BDBDBD})"
chatmsg "{F3304C}/hph {BDBDBD}ðàçìåð øðèôòà({2FC5CA}20 íàïðèìåð{BDBDBD})"
chatmsg "{D850FB}Version 0.1 {50FB54}Thread™"
chatmsg "---------------" 0xF330B3
0AC8: 3@ = allocate_memory_size 256  
0AC8: 23@ = allocate_memory_size 256            
              0B34: samp register_client_command "hpc" to_label @settcoord
              0B34: samp register_client_command "hph" to_label @settheight           
              0AF0: 12@ = get_int_from_ini_file "cleo\HP.ini" section "Main" key "Height"
              0B6D: render 1@ = create_font "Arial black" height 12@ flags 12
           

:2
wait 0
     0B61:  samp is_local_player_spawned
jf @2


:src
wait 0
     0226: 2@ = actor $Player_Actor health
     0AD3: 3@ = format "{ffffff}%d {6461E9}hp" 2@
         0AF0: 8@ = get_int_from_ini_file "cleo\HP.ini" section "Main" key "cord-x"
         0AF0: 9@ = get_int_from_ini_file "cleo\HP.ini" section "Main" key "cord-y"      
0B6F: render font 1@ draw_text 3@ pos 8@ 9@ color 0xFFFFF2CF
jump @src

:settcoord
wait 0
SAMP.IsCommandTyped(4@)
    if 0AD4: 5@ = scan_string 4@ format "%d%d" 6@ 7@ //IF and SET
    jf @error
    0AF1: write_int 6@ to_ini_file "cleo\HP.ini" section "Main" key "cord-x"
    0AF1: write_int 7@ to_ini_file "cleo\HP.ini" section "Main" key "cord-y"
    chatmsg "Êîðäèíàòû óñòàíîâëåíû" 0x30F39C
    0B43: samp cmd_ret

:settheight
wait 0
SAMP.IsCommandTyped(15@)
    if 0AD4: 14@ = scan_string 15@ format "%d" 16@ //IF and SET
    jf @error
    0AF1: write_int 16@ to_ini_file "cleo\HP.ini" section "Main" key "Height"
    chatmsg "Âûñîòà óñòàíîâëåíà" 0x30F39C
    0AF0: 12@ = get_int_from_ini_file "cleo\HP.ini" section "Main" key "Height"
    0B6D: render 1@ = create_font "Comic sans MS" height 12@ flags 12
    0B43: samp cmd_ret


:error
wait 0
     chatmsg "Íåïðàâèëüíî ââåäåíû äàííûå" 0xBD2828
     0B43: samp cmd_ret
Че за хуйня?
Там пара,уосяков,есть
 
Последнее редактирование:

Qsany

Потрачен
464
147
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.

ae1c2a

Известный
195
6
через что можно посмотреть код сампфункс? при открытии сани билдером какой-то пиздец
 

kawa operand

перерывпятьминут
602
333
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.