В чём ошибка?
CLEO:
{$CLEO}
0000:
0AC8: 21@ = allocate_memory_size 256
0B6D: render 22@ = create_font "Arial" height 23 flags 5
while true
wait 0
call @nearid 0 0@ 1@
Actor.StorePos(0@, 11@, 12@, 13@)
0B55: convert_3D_coords 11@ 12@ 13@ to_screen 14@ 15@
0AD3: 21@ = format "%d" 1@
0B6F: render font 22@ draw_text 21@ pos 14@ 15@ color 0xAAFFFFFF
end
:nearid
3@ = 1000.0
4@ = 0xFFFFFF
0A8D: 0@ = read_memory 0xB74490 size 4 virtual_protect 0
0@ += 4
0A8D: 0@ = read_memory 0@ size 4 virtual_protect 0
for 1@ = 0 to 35584 step 0x100
0A8D: 2@ = read_memory 0@ size 1 virtual_protect 0
0@++
if and
2@ >= 0x00
2@ < 0x80
then
005A: 2@ += 1@
if or
003C: $PLAYER_ACTOR == 2@
856D: NOT actor 2@ defined
then continue
end
0AB1: call @dist 1 remote_player_handle 2@ retr_dist_to 5@
if 0025: 3@ > 5@
then
0087: 3@ = 5@
0085: 4@ = 2@
end
end
end
if 4@ = SAMP.GetSAMPPlayerIDByActorHandle(4@)
then
0485: return_true
else
059A: return_false
end
0AB2: ret 2 3@ 4@
:dist
Actor.StorePos(0@, 1@, 2@, 3@)
Actor.StorePos($PLAYER_ACTOR, 4@, 5@, 6@)
050A: 7@ = distance_between_XYZ 4@ 5@ 6@ and_XYZ 1@ 2@ 3@
0AB2: ret 1 7@