do anyone know from where this crash come from? this wh works perfectly 10 / 20 min ~ and after it crashes my game and i fck dont know, it is over my knowledge
there is a screen http://imgur.com/a/fRC9U
there is source[not messy
) ]
[shcode=cpp]{$CLEO}
:Noname_02
wait 0 ms
0B34: create command "on" to label @label
0@ = Render.CreateFont("Comic Sans MS", 9, 0x5)
18@ = Render.CreateFont("Comic Sans MS", 9, 0x5)
19@ = Render.CreateFont("Comic Sans MS", 9, 0x5)
1@ = 0
while true
wait 0 ms
if 1@ == 1
then
for 2@ = 0 to 999
if SAMP.IsPlayerConnected(2@)
then
3@ = SAMP.GetActorHandleByPlayerID(2@)
if 056D: actor 3@ defined
then
04C4: store_coords_to 4@ 5@ 6@ from_actor 3@ with_offset 0.0 0.0 0.0
04C4: store_coords_to 10@ 11@ 12@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0
0B55: convert_3D_coords 4@ 5@ 6@ to_screen 7@ 8@
0B25: 15@ = Get 2@ Health
alloc 9@ = 280
alloc 14@ = 280
alloc 20@ = 280
050A: 17@ = distance_between_XYZ 4@ 5@ 6@ and_XYZ 10@ 11@ 12@
23@ = SAMP.GetPlayerNickname(2@)
25@ = SAMP.GetPlayerColor(2@)
0B26: samp 16@ = get_player_armor 2@
0B66: render argb 25@ to_a 26@ r 27@ g 28@ b 29@
0AD3: 14@ = format "{E20606}Health: %d" 15@
0AD3: 9@ = format "%s[%d] | {B1C405}Distance: %0.1fm" 23@ 2@ 17@
0AD3: 20@ = format "Armour: %d" 16@
if and
17@ < 200.0
17@ > 57.0
02CB: actor 3@ bounding_sphere_visible
then
7@ -= 75
8@ -= 25
Render.DrawText(0@, 9@, 7@, 8@,0xFFffffff)
if 16@ > 1
then
7@ += 100
8@ += 12
Render.DrawText(19@,20@,7@,8@,0xFFffffff) // Armour
04C4: store_coords_to 4@ 5@ 6@ from_actor 3@ with_offset 0.0 0.0 0.0
0B55: convert_3D_coords 4@ 5@ 6@ to_screen 7@ 8@
7@ -= 50
8@ -= 13
Render.DrawText(18@,14@,7@,8@,0xFFffffff) // Health
else
04C4: store_coords_to 4@ 5@ 6@ from_actor 3@ with_offset 0.0 0.0 0.0
0B55: convert_3D_coords 4@ 5@ 6@ to_screen 7@ 8@
7@ -= 60
8@ -= 13
Render.DrawText(18@,14@,7@,8@,0xFFffffff) // Health
free 9@
free 14@
free 20@
end
end
end
end
end
end
end
:label
SAMP.IsCommandTyped(1@)
if 0ad4: 12@ 1@ "%d" 13@
then
if 13@ == 1
then 1@ = 1
else
if 13@ == 0
then 1@ = 0
end
end
end
SAMP.CmdRet
[/shcode]