You are not logged in.
Pages: 1
почему вылетает?
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
thread "HEAD"
:HEAD_8
wait 0
04ED: load_animation "PED"
:HEAD_26
wait 0
if
Player.Defined($PLAYER_ACTOR)
else_jump @HEAD_26
if
04EE: animation "PED" loaded
else_jump @HEAD_8
0209: 10@ = random_int_in_ranges 1 2
0AD2: 1@ = player $PLAYER_CHAR targeted_actor //IF and SET
if and
0184: actor 1@ health <= 100
00E1: player 0 pressed_key 17
0AD2: 1@ = player $PLAYER_CHAR targeted_actor //IF and SET
02D8: actor $PLAYER_ACTOR current_weapon == 25
051A: actor 1@ damaged_by_actor $PLAYER_ACTOR
10@ = 1
else_jump @HEAD_26
wait 0
0829: actor 1@ perform_animation "KO_SHOT_FRONT" IFP_file "PED" 4.0 time 10 and_dies
wait 1000
Actor.RemoveReferences(1@)
04EF: release_animation "PED"
jump @HEAD_8
Last edited by asdsadsad (25-01-2019 14:19)
Offline
Анимацию PED не надо загружать и выгружать, она загружается изначально. Надо только проверять загружена ли она.
{$CLEO} 0000: while true wait 0 if Player.Defined($PLAYER_CHAR) then if 0AD2: 1@ = player $PLAYER_CHAR targeted_actor then if and 8184: not actor 1@ health >= 100 00E1: player 0 pressed_key 17 02D8: actor $PLAYER_ACTOR current_weapon == 25 051A: actor 1@ damaged_by_actor $PLAYER_ACTOR then if 04EE: animation "PED" loaded then 0829: actor 1@ perform_animation "KO_SHOT_FRONT" IFP_file "PED" 4.0 time 0 and_dies wait 1000 end end end end end
Offline
04EF: release_animation "PED"
Это ни в кoeм cлyчae нельзя делать с анимацией "PED"
0AD2: 1@ = player $PLAYER_CHAR targeted_actor //IF and SET if and 0184: actor 1@ health <= 100
перед использованием актёра 1@ нужно проверить его существование, или использовать как проверку:
if 0AD2: 1@ = player $PLAYER_CHAR targeted_actor //IF and SET then if 0184: actor 1@ health <= 100 then // ... end end
Ну и это собственно
10@ = 1
Это НЕ проверка, используйте == если нужно проверить, а не задать
Offline
Pages: 1