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

legioner1234

Новичок
32
0
Грузчика на отправке пакет для сервера как бы не сильно НубоРП.
А при компилировании выбивает ошибку: "Неверное выражение 3@ = SAMP.GetSAMPPlayerIDByActorHandle($PLAYER_ACTOR).
Одна из переменных имеет неизвестный тип, либо их типы несовместимы."

кто-то поможет или нет ?
 

yanderu2

Новичок
37
2
Помогите
Код:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
 
//-------------MAIN---------------
0662: printstring "SYSTEMFV12" 
0001: wait 0 ms 
03A4: name_thread "$NONAME" 
03F0: enable_text_draw 1 
 
 
wait 0 
$DC0 = Actor.Health($PLAYER_ACTOR)
0AF2: $DC1 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "POS_X" 
0AF2: $DC2 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "POS_Y" 
0AF2: $DC3 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "POS_HP_X" 
0AF2: $DC4 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "POS_HP_Y" 
0AF2: $DS1 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "SIZE_X" 
0AF2: $DS2 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "SIZE_Y" 
033F: set_text_draw_letter_size 0.5 0.8 
0340: set_text_draw_RGBA 255 255 255 255 
081C: draw_text_outline 1 RGBA 0 0 0 255 
 
 
8029:   not  0@ >= 100 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 72 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 95 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 73 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 90 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 74 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 85 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 75 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 80 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 76 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 75 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 77 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 70 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 78 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 65 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 79 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 60 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 80 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 55 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 81 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 50 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 82 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 45 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 83 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 40 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 84 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 35 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 85 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 30 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 86 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 25 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 87 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 20 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 88 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 15 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 89 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 10 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 90 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 5 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 91 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
00D6: if 
8029:   not  0@ >= 2 
004D: jump_if_false 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 92 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255 
0002: jump
 

SR_team

like pancake
BH Team
4,720
6,369
Помогите
Код:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
 
//-------------MAIN---------------
0662: printstring "SYSTEMFV12"
0001: wait 0 ms
03A4: name_thread "$NONAME"
03F0: enable_text_draw 1
 
 
wait 0
$DC0 = Actor.Health($PLAYER_ACTOR)
0AF2: $DC1 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "POS_X"
0AF2: $DC2 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "POS_Y"
0AF2: $DC3 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "POS_HP_X"
0AF2: $DC4 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "POS_HP_Y"
0AF2: $DS1 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "SIZE_X"
0AF2: $DS2 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "SIZE_Y"
033F: set_text_draw_letter_size 0.5 0.8
0340: set_text_draw_RGBA 255 255 255 255
081C: draw_text_outline 1 RGBA 0 0 0 255
 
 
8029:  not  0@ >= 100
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 72 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 95
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 73 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 90
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 74 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 85
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 75 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 80
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 76 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 75
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 77 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 70
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 78 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 65
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 79 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 60
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 80 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 55
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 81 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 50
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 82 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 45
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 83 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 40
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 84 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 35
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 85 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 30
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 86 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 25
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 87 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 20
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 88 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 15
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 89 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 10
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 90 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 5
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 91 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 2
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 92 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
0002: jump

Не юзай глобальные переменные
 

fonarik

Известный
206
3
Помогите
Код:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
 
//-------------MAIN---------------
0662: printstring "SYSTEMFV12"
0001: wait 0 ms
03A4: name_thread "$NONAME"
03F0: enable_text_draw 1
 
 
wait 0
$DC0 = Actor.Health($PLAYER_ACTOR)
0AF2: $DC1 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "POS_X"
0AF2: $DC2 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "POS_Y"
0AF2: $DC3 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "POS_HP_X"
0AF2: $DC4 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "POS_HP_Y"
0AF2: $DS1 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "SIZE_X"
0AF2: $DS2 = get_float_from_ini_file "CLEO\HUD.INI" section "HEALTH" key "SIZE_Y"
033F: set_text_draw_letter_size 0.5 0.8
0340: set_text_draw_RGBA 255 255 255 255
081C: draw_text_outline 1 RGBA 0 0 0 255
 
 
8029:  not  0@ >= 100
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 72 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 95
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 73 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 90
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 74 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 85
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 75 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 80
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 76 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 75
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 77 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 70
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 78 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 65
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 79 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 60
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 80 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 55
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 81 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 50
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 82 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 45
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 83 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 40
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 84 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 35
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 85 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 30
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 86 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 25
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 87 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 20
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 88 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 15
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 89 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 10
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 90 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 5
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 91 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
00D6: if
8029:  not  0@ >= 2
004D: jump_if_false
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 92 position 570.0 76.86 size 150.0 150.0 RGBA 255 255 255 255
0002: jump

и еще, хп бывает больше 100
 

mauvais_ton

Известный
77
39
Подскажите, как можно получить id/handle персонажа, который нацелен на игрока ($PLAYER_ACTOR/$PLAYER_CHAR)?

Опкод, получающий handle твоей цели, никак нельзя применить в данном случае.
 

SR_team

like pancake
BH Team
4,720
6,369
Подскажите, как можно получить id/handle персонажа, который нацелен на игрока ($PLAYER_ACTOR/$PLAYER_CHAR)?

Опкод, получающий handle твоей цели, никак нельзя применить в данном случае.
Юзаешь опкод прицеливания относящийся к тебе наоборот, только сначало чекни всех игроков в стриме