@Boyenerji
1) wait 0 в твоем цикле работает не всегда
2) не юзай циклы в функциях, сделай вызов функции в цикле
3) нет ret
ret не помогает.
Функция вызывается в цикле у меня.
Вот:
CLEO:
repeat
wait 0
until samp.Available()
while true
wait 0
if
0AB0: 104
then
repeat
wait 0
0AB1: call_scm_func @set_angle 2 2170.6194 -2251.1318
0AB1: call_scm_func @get_distance 2 2170.6194 -2251.1318 0@
0AB1: call_scm_func @plcol
0B56: set_game_key 1 state -128
0B56: set_game_key 16 state -128
until 00ED: actor $PLAYER_ACTOR sphere 0 near_point 2170.6194 -2251.1318 radius 0.5 0.5 on_foot
end
end