-
Notifications
You must be signed in to change notification settings - Fork 313
Parse simple array #641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Parse simple array #641
Changes from 2 commits
29f440a
dc71cd9
c4e28fe
95f73a2
e2ab4de
0a4b3fb
888b1fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ | |
| if (FETCH_CONST(life_adminlevel) < 4) exitWith {closeDialog 0; hint localize "STR_ANOTF_ErrorLevel";}; | ||
|
|
||
| private _unit = lbData[2902,lbCurSel (2902)]; | ||
| _unit = call compile format ["%1", _unit]; | ||
| _unit = parseSimpleArray format ["%1", _unit]; | ||
|
||
| if (isNil "_unit") exitWith {}; | ||
| if (isNull _unit) exitWith {}; | ||
| if (_unit == player) exitWith {hint localize "STR_ANOTF_Error";}; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ | |
| https://community.bistudio.com/wiki/Multiplayer_Server_Commands | ||
| */ | ||
| private _unit = lbData[2902,lbCurSel (2902)]; | ||
| _unit = call compile format ["%1", _unit]; | ||
| _unit = parseSimpleArray format ["%1", _unit]; | ||
|
||
| if (isNil "_unit") exitWith {}; | ||
| if (isNull _unit) exitWith {}; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've gotta be careful, not every call compile can become parseSimpleArray. In this instance, there is no array, as once compiled its an object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that could become
missionNamespace getVariable _dptho :)or maybe
missionNamespace getVariable [_dp, objNull]with isNull check to be safe