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

DANIIL XPC

Известный
81
5
Кто-нибудь знает, почему они отмечают моментальный взять аварию радио? Как я могу решить эту проблему?
//ENG Does anyone know why they mark off instant take a radio crash? How can I solve the problem?

Код:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 

:Noname_2
8AFA:   not is_samp_available 
004D: jump_if_false @Noname_23 
0001: wait 400 ms 
0002: jump @Noname_2 

:Noname_23
0001: wait 1000 ms 
0AC8: 0@ = allocate_memory_size 1024 
0AC8: 30@ = allocate_memory_size 512 
0AC8: 13@ = allocate_memory_size 2048 
0AC8: 14@ = allocate_memory_size 512 
0AC8: 29@ = allocate_memory_size 512 
0AC8: 16@ = allocate_memory_size 512 
0AC8: 22@ = allocate_memory_size 512 
0AC8: 18@ = allocate_memory_size 512 
0AC8: 21@ = allocate_memory_size 512 
0AC8: 15@ = allocate_memory_size 512 
0AC8: 12@ = allocate_memory_size 512 
0AC8: 17@ = allocate_memory_size 512 
0AF8: samp add_message_to_chat "{A3E900}[SA:MP | Radio Online]: {FFFFFF}Ŕâňîđ: {A3E900}Ded_Fedot" color -1  
00D6: if 
0AAB:   file_exists "CLEO\MyRadio.ini" 
004D: jump_if_false @Noname_233 
0002: jump @Noname_1067 

:Noname_233
0AF5: write_string "Đŕäčî 4Life" to_ini_file "CLEO\MyRadio.ini" section "Stationą1" key "Name" 
0AF5: write_string "play.radio4life.ru:8000/radio" to_ini_file "CLEO\MyRadio.ini" section "Stationą1" key "Link" 
0AF5: write_string "Äîđîćíîĺ đŕäčî" to_ini_file "CLEO\MyRadio.ini" section "Stationą2" key "Name" 
0AF5: write_string "dorognoe.hostingradio.ru:8000/radio" to_ini_file "CLEO\MyRadio.ini" section "Stationą2" key "Link" 
0AF5: write_string "Íŕřĺ đŕäčî" to_ini_file "CLEO\MyRadio.ini" section "Stationą3" key "Name" 
0AF5: write_string "nashe2.hostingradio.ru/nashe-128.mp3" to_ini_file "CLEO\MyRadio.ini" section "Stationą3" key "Link" 
0AF5: write_string "Řŕíńîí" to_ini_file "CLEO\MyRadio.ini" section "Stationą4" key "Name" 
0AF5: write_string "icecast.chanson.cdnvideo.ru:8000/chanson_128_pm.mp3" to_ini_file "CLEO\MyRadio.ini" section "Stationą4" key "Link" 
0AF5: write_string "ElectroN" to_ini_file "CLEO\MyRadio.ini" section "Stationą5" key "Name" 
0AF5: write_string "radio-electron.ru:8000/128" to_ini_file "CLEO\MyRadio.ini" section "Stationą5" key "Link" 
0AF1: write_int 500 to_ini_file "CLEO\MyRadio.ini" section "Settings" key "DPOS_X" 
0AF1: write_int 200 to_ini_file "CLEO\MyRadio.ini" section "Settings" key "DPOS_Y" 
0AF1: write_int 1263225680 to_ini_file "CLEO\MyRadio.ini" section "Settings" key "Color" 
0AF1: write_int 66 to_ini_file "CLEO\MyRadio.ini" section "Settings" key "ActiveCursor" 
0AF1: write_int 18 to_ini_file "CLEO\MyRadio.ini" section "Settings" key "DeactiveCursor" 

:Noname_1067
0AF4: 30@ = read_string_from_ini_file "CLEO\MyRadio.ini" section "Stationą1" key "Name" 
0AF4: 14@ = read_string_from_ini_file "CLEO\MyRadio.ini" section "Stationą1" key "Link" 
0AF4: 29@ = read_string_from_ini_file "CLEO\MyRadio.ini" section "Stationą2" key "Name" 
0AF4: 16@ = read_string_from_ini_file "CLEO\MyRadio.ini" section "Stationą2" key "Link" 
0AF4: 22@ = read_string_from_ini_file "CLEO\MyRadio.ini" section "Stationą3" key "Name" 
0AF4: 18@ = read_string_from_ini_file "CLEO\MyRadio.ini" section "Stationą3" key "Link" 
0AF4: 21@ = read_string_from_ini_file "CLEO\MyRadio.ini" section "Stationą4" key "Name" 
0AF4: 15@ = read_string_from_ini_file "CLEO\MyRadio.ini" section "Stationą4" key "Link" 
0AF4: 12@ = read_string_from_ini_file "CLEO\MyRadio.ini" section "Stationą5" key "Name" 
0AF4: 17@ = read_string_from_ini_file "CLEO\MyRadio.ini" section "Stationą5" key "Link" 
0AF0: 27@ = get_int_from_ini_file "CLEO\MyRadio.ini" section "Settings" key "DPOS_X" 
0AF0: 28@ = get_int_from_ini_file "CLEO\MyRadio.ini" section "Settings" key "DPOS_Y" 
0AF0: 32@ = get_int_from_ini_file "CLEO\MyRadio.ini" section "Settings" key "Color" 
0AF0: 31@ = get_int_from_ini_file "CLEO\MyRadio.ini" section "Settings" key "ActiveCursor" 
0AF0: 20@ = get_int_from_ini_file "CLEO\MyRadio.ini" section "Settings" key "DeactiveCursor" 
0B80: dialog 0@ = create "{3DB2FF}SA:MP | Radio Online" 
0B84: dialog 0@ set_pos_XY 27@ 28@ size 300 150 
0B93: dialog 0@ set_background_color 32@ 
0B83: dialog 0@ add_checkbox id 0 text 30@ pos_XY 1 6 size 180 20 
0B83: dialog 0@ add_checkbox id 1 text 29@ pos_XY 1 25 size 185 20 
0B83: dialog 0@ add_checkbox id 2 text 22@ pos_XY 1 44 size 280 20 
0B83: dialog 0@ add_checkbox id 3 text 21@ pos_XY 1 63 size 185 20 
0B83: dialog 0@ add_checkbox id 4 text 12@ pos_XY 1 82 size 185 20 
0B91: dialog 0@ add_static id 6 text "{D0D0D0}Script by Ded_Fedot" pos_XY 140 100 size 1600 24 
0B9E: dialog 0@ checkbox 0 set_checked 6@ 
0B9E: dialog 0@ checkbox 1 set_checked 7@ 
0B9E: dialog 0@ checkbox 2 set_checked 8@ 
0B9E: dialog 0@ checkbox 3 set_checked 10@ 
0B9E: dialog 0@ checkbox 4 set_checked 11@ 
0B86: dialog 0@ set_visible 0 
0BE2: raknet setup_outcoming_packet_hook -3901 
0B34: samp register_client_command "rdo" to_label @Noname_3834 

:Noname_1962
0001: wait 0 ms 
0AB1: call_scm_func @Noname_3966 2 0@ 1  
0B85: dialog 0@ get_position_to 23@ 24@ size_to 25@ 26@ 
0AF1: write_int 23@ to_ini_file "CLEO\MyRadio.ini" section "Settings" key "DPOS_X" 
0AF1: write_int 24@ to_ini_file "CLEO\MyRadio.ini" section "Settings" key "DPOS_Y" 
00D6: if 
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@ 
004D: jump_if_false @Noname_3793 
00D6: if 
0039:   1@ == 1025 
004D: jump_if_false @Noname_3793 
00D6: if 
0039:   2@ == 0 
004D: jump_if_false @Noname_2458 
00D6: if 
0B92:  dialog 0@ checkbox 2@ is_checked 
004D: jump_if_false @Noname_2331 
0006: 6@ = 1 
0BA3: dialog 0@ control 6 free 
0209: 32@ = random_int_in_ranges 632256 1263225680 
0AF1: write_int 32@ to_ini_file "CLEO\MyRadio.ini" section "Settings" key "Color" 
0B93: dialog 0@ set_background_color 32@ 
0AD3: 13@ = format "%s" 14@  
0F02: 
00D6: if 
8038:   not  $4 == 0 
004D: jump_if_false @Noname_3793 
0F0B: 
0F03: 
0B91: dialog 0@ add_static id 5 text "{D0D0D0}Special for Prime-Hack.Net" pos_XY 90 100 size 1600 24 
0002: jump @Noname_2458 

:Noname_2331
0006: 6@ = 0 
0B91: dialog 0@ add_static id 6 text "{D0D0D0}Script by Ded_Fedot" pos_XY 140 100 size 1600 24 
0209: 32@ = random_int_in_ranges 632256 1263225680 
0AF1: write_int 32@ to_ini_file "CLEO\MyRadio.ini" section "Settings" key "Color" 
0B93: dialog 0@ set_background_color 32@ 
0BA3: dialog 0@ control 5 free 
0F05: 
0F06: 

:Noname_2458
00D6: if 
0039:   2@ == 1 
004D: jump_if_false @Noname_2794 
00D6: if 
0B92:  dialog 0@ checkbox 2@ is_checked 
004D: jump_if_false @Noname_2667 
0006: 7@ = 1 
0BA3: dialog 0@ control 6 free 
0209: 32@ = random_int_in_ranges 632256 1263225680 
0AF1: write_int 32@ to_ini_file "CLEO\MyRadio.ini" section "Settings" key "Color" 
0B93: dialog 0@ set_background_color 32@ 
0AD3: 13@ = format "%s" 16@  
0F02: 
00D6: if 
8038:   not  $5 == 0 
004D: jump_if_false @Noname_3793 
0F0B: 
0F03: 
0B91: dialog 0@ add_static id 5 text "{D0D0D0}Special for BlastHack.Net" pos_XY 100 100 size 1600 24 
0002: jump @Noname_2794 

:Noname_2667
0006: 7@ = 0 
0B91: dialog 0@ add_static id 6 text "{D0D0D0}Script by Ded_Fedot" pos_XY 140 100 size 1600 24 
0209: 32@ = random_int_in_ranges 632256 1263225680 
0AF1: write_int 32@ to_ini_file "CLEO\MyRadio.ini" section "Settings" key "Color" 
0B93: dialog 0@ set_background_color 32@ 
0BA3: dialog 0@ control 5 free 
0F05: 
0F06: 

:Noname_2794
00D6: if 
0039:   2@ == 2 
004D: jump_if_false @Noname_3128 
00D6: if 
0B92:  dialog 0@ checkbox 2@ is_checked 
004D: jump_if_false @Noname_3001 
0006: 8@ = 1 
0BA3: dialog 0@ control 6 free 
0209: 32@ = random_int_in_ranges 632256 1263225680 
0AF1: write_int 32@ to_ini_file "CLEO\MyRadio.ini" section "Settings" key "Color" 
0B93: dialog 0@ set_background_color 32@ 
0AD3: 13@ = format "%s" 18@  
0F02: 
00D6: if 
8038:   not  $6 == 0 
004D: jump_if_false @Noname_3793 
0F0B: 
0F03: 
0B91: dialog 0@ add_static id 5 text "{D0D0D0}Special for LiteHack.Ru" pos_XY 120 100 size 1600 24 
0002: jump @Noname_3128 

:Noname_3001
0006: 8@ = 0 
0B91: dialog 0@ add_static id 6 text "{D0D0D0}Script by Ded_Fedot" pos_XY 140 100 size 1600 24 
0209: 32@ = random_int_in_ranges 632256 1263225680 
0AF1: write_int 32@ to_ini_file "CLEO\MyRadio.ini" section "Settings" key "Color" 
0B93: dialog 0@ set_background_color 32@ 
0BA3: dialog 0@ control 5 free 
0F05: 
0F06: 

:Noname_3128
00D6: if 
0039:   2@ == 3 
004D: jump_if_false @Noname_3464 
00D6: if 
0B92:  dialog 0@ checkbox 2@ is_checked 
004D: jump_if_false @Noname_3337 
0006: 10@ = 1 
0BA3: dialog 0@ control 6 free 
0209: 32@ = random_int_in_ranges 632256 1263225680 
0AF1: write_int 32@ to_ini_file "CLEO\MyRadio.ini" section "Settings" key "Color" 
0B93: dialog 0@ set_background_color 32@ 
0AD3: 13@ = format "%s" 15@  
0F02: 
00D6: if 
8038:   not  $7 == 0 
004D: jump_if_false @Noname_3793 
0F0B: 
0F03: 
0B91: dialog 0@ add_static id 5 text "{D0D0D0}BassOpcodes by legend2360" pos_XY 75 100 size 1600 24 
0002: jump @Noname_3464 

:Noname_3337
0006: 10@ = 0 
0B91: dialog 0@ add_static id 6 text "{D0D0D0}Script by Ded_Fedot" pos_XY 140 100 size 1600 24 
0209: 32@ = random_int_in_ranges 632256 1263225680 
0AF1: write_int 32@ to_ini_file "CLEO\MyRadio.ini" section "Settings" key "Color" 
0B93: dialog 0@ set_background_color 32@ 
0BA3: dialog 0@ control 5 free 
0F05: 
0F06: 

:Noname_3464
00D6: if 
0039:   2@ == 4 
004D: jump_if_false @Noname_3793 
00D6: if 
0B92:  dialog 0@ checkbox 2@ is_checked 
004D: jump_if_false @Noname_3666 
0006: 11@ = 1 
0BA3: dialog 0@ control 6 free 
0209: 32@ = random_int_in_ranges 632256 1263225680 
0AF1: write_int 32@ to_ini_file "CLEO\MyRadio.ini" section "Settings" key "Color" 
0B93: dialog 0@ set_background_color 32@ 
0AD3: 13@ = format "%s" 17@  
0F02: 
00D6: if 
8038:   not  $8 == 0 
004D: jump_if_false @Noname_3793 
0F0B: 
0F03: 
0B91: dialog 0@ add_static id 5 text "{D0D0D0}Äŕ ďčçäĺö ďđîńňî!" pos_XY 150 100 size 1600 24 
0002: jump @Noname_3793 

:Noname_3666
0006: 11@ = 0 
0B91: dialog 0@ add_static id 6 text "{D0D0D0}Script by Ded_Fedot" pos_XY 140 100 size 1600 24 
0209: 32@ = random_int_in_ranges 632256 1263225680 
0AF1: write_int 32@ to_ini_file "CLEO\MyRadio.ini" section "Settings" key "Color" 
0B93: dialog 0@ set_background_color 32@ 
0BA3: dialog 0@ control 5 free 
0F05: 
0F06: 

:Noname_3793
00D6: if 
0039:   3@ == 1 
004D: jump_if_false @Noname_3827 
0001: wait 100 ms 
0B8D: samp set_cursor_mode 4@ 
0006: 3@ = 0 

:Noname_3827
0002: jump @Noname_1962 

:Noname_3834
00D6: if 
0B87:  dialog 0@ is_visible 
004D: jump_if_false @Noname_3878 
0B86: dialog 0@ set_visible 0 
0006: 4@ = 0 
0006: 3@ = 1 
0002: jump @Noname_3899 

:Noname_3878
0B86: dialog 0@ set_visible 1 
0006: 4@ = 2 
0006: 3@ = 1 

:Noname_3899
0B43: samp cmd_ret 
00D6: if 
0B8C:     samp is_cursor_active 
004D: jump_if_false @Noname_3938 
00D6: if and
0AB0:   key_pressed 2 
0AB0:   key_pressed 20@ 
004D: jump_if_false @Noname_3962 
0B5D: samp toggle_cursor 0 

:Noname_3938
00D6: if and
0AB0:   key_pressed 2 
0AB0:   key_pressed 31@ 
004D: jump_if_false @Noname_3962 
0B5D: samp toggle_cursor 1 

:Noname_3962
0BE0: raknet hook_ret 1 

:Noname_3966
0085: 9@ = 1@ // (int) 
0B85: dialog 0@ get_position_to 1@ 2@ size_to 3@ 4@ 
00D6: if 
0AB1: call_scm_func @Noname_4112 4 1@ 2@ 3@ 9@ 7@ 8@  
004D: jump_if_false @Noname_4107 

:Noname_4030
0001: wait 0 ms 
0B5E: get_cursor_pos 5@ 6@ 
0062: 5@ -= 7@ // (int) 
0062: 6@ -= 8@ // (int) 
0B84: dialog 0@ set_pos_XY 5@ 6@ size 3@ 4@ 
0AB1: call_scm_func @Noname_4259 1 0@  
8AB0:   not key_pressed 9@ 
004D: jump_if_false @Noname_4030 
0BA1: dialog 0@ set_minimized 0 

:Noname_4107
0AB2: ret 0 

:Noname_4112
0085: 6@ = 3@ // (int) 
0085: 4@ = 0@ // (int) 
0085: 5@ = 1@ // (int) 
005A: 4@ += 2@ // (int) 
000A: 5@ += 15 
0B5E: get_cursor_pos 2@ 3@ 
00D6: if and
0AB0:   key_pressed 6@ 
002D:   2@ >= 0@ // (int) 
801D:   not  2@ > 4@ // (int) 
002D:   3@ >= 1@ // (int) 
801D:   not  3@ > 5@ // (int) 
004D: jump_if_false @Noname_4232 
0485:   return_true 
0062: 2@ -= 0@ // (int) 
0062: 3@ -= 1@ // (int) 
0002: jump @Noname_4248 

:Noname_4232
059A:   return_false 
0006: 2@ = -1 
0006: 3@ = -1 

:Noname_4248
0AB2: ret 2 2@ 3@ 

:Noname_4259
0B85: dialog 0@ get_position_to 1@ 2@ size_to 3@ 4@ 
0B5A: get_screen_resolution 5@ 6@ 
0062: 5@ -= 3@ // (int) 
0062: 6@ -= 4@ // (int) 
00D6: if 
8029:   not  1@ >= 0 
004D: jump_if_false @Noname_4325 
0006: 1@ = 0 

:Noname_4325
00D6: if 
8029:   not  2@ >= 0 
004D: jump_if_false @Noname_4350 
0006: 2@ = 0 

:Noname_4350
00D6: if 
001D:   1@ > 5@ // (int) 
004D: jump_if_false @Noname_4377 
0085: 1@ = 5@ // (int) 

:Noname_4377
00D6: if 
001D:   2@ > 6@ // (int) 
004D: jump_if_false @Noname_4404 
0085: 2@ = 6@ // (int) 

:Noname_4404
0B84: dialog 0@ set_pos_XY 1@ 2@ size 3@ 4@ 
0AB2: ret 0
 

oolol

Новичок
16
1
Что не так?
PHP:
:bich
for 0@ = 0 to 999
if 0B23:  samp is_player_connected 0@
then
0B65: samp 1@ = player 0@ score
0B36: samp 4@ = get_player_nickname 0@
    if 1@ == 1
    then
    0AF8: samp add_message_to_chat "%s[%d]" 4@ 0@
    wait 2000
    end
end
0B43: samp cmd_ret
 

DarkP1xel

Сила воли наше всё.
BH Team
3,635
4,983
табуляцию нормально используй
end проебал для for
wait нельзя юзать в callback'ах
 

hnnssy

Известный
Друг
2,684
2,762
Что не так?
PHP:
:bich
for 0@ = 0 to 999
if 0B23:  samp is_player_connected 0@
then
0B65: samp 1@ = player 0@ score
0B36: samp 4@ = get_player_nickname 0@
    if 1@ == 1
    then
    0AF8: samp add_message_to_chat "%s[%d]" 4@ 0@
    wait 2000
    end
end
0B43: samp cmd_ret
в командах нельзя использовать wait
не закрыт цикл for (end не хватает)
не указан цвет для 0AF8