Diary Record: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(Undo revision 155160 by killzone_kid (talk))
Tag: Undo
Line 1: Line 1:
; Description<nowiki>:</nowiki>
; Description<nowiki>:</nowiki>
: A [[Diary Record]] is created by [[createDiaryRecord]] - introduced in Arma 2. See also [[diaryRecordNull]]
: A [[Diary Record]] is created by [[createDiaryRecord]] - introduced in Arma 2.





Revision as of 22:46, 10 July 2020

Description:
A Diary Record is created by createDiaryRecord - introduced in Arma 2.


Before the introduction of diaryRecordNull, its value could still be obtained and compared as follow: private _nullRecord = objNull createDiaryRecord []; // wrong parameters = failure to create a record = null value

private _createdRecord = player createDiaryRecord ["Diary", ["title", "description"]];
if (_createdRecord isEqualTo _nullRecord) then { hint "Failed" };