given that your length var already exists, there are a few ways
printf(var) - outputs the value to the console
actor_menu.set_msg(1,var,X) - shows the text in the bottom of the screen for X seconds
news_manager.send_tip(db.actor, var, nil, "ui\\ui_icon_news_trx_dolg", 6000) - lots of optional args but what matters is that it will print your stuff as a PDA message (var is your value here)
Wang_Laoshi
joined
send nu... I mean, some good Stalker mods