LastJournalMessage
Returns the text of the most recent (newest) journal entry.
After the call, the Line* properties are updated with data from the last journal entry.
Returns an empty string if the journal is empty.
Возвращает текст последней (самой новой) записи журнала.
После вызова свойства Line* обновляются данными из последней записи журнала.
Возвращает пустую строку, если журнал пуст.
function LastJournalMessage: String;
def LastJournalMessage() -> str: ...
begin
UOSay('hello');
Wait(1000);
AddToSystemJournal('Last message: ' + LastJournalMessage);
AddToSystemJournal('From: ' + LineName);
end.
UOSay('hello')
Wait(1000)
AddToSystemJournal(f'Last message: {LastJournalMessage()}')
AddToSystemJournal(f'From: {LineName()}')