Skip to content
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

Enhancement: dialogModesToolsInit should check if function entry is valid #5

Open
Adanteh opened this issue Oct 13, 2017 · 1 comment

Comments

@Adanteh
Copy link

Adanteh commented Oct 13, 2017

Right now if you leave the function class entry exist like

			class Events {
				class OnInit { };
			};

then you'll get an error that just shows up as ERROR: 'call ' in Arma, which makes it pretty hard to figure out what you're doing wrong. Would be nice if you could add if (_function != "") before the call.

@zgmrvn
Copy link
Owner

zgmrvn commented Oct 15, 2017

i'll go with something like :
if (_function == "") exitWith { ["%1 : empty function for %2 event", _module, _event] call BIS_fnc_error };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants