• 0
GamersRoost

Error with A3XAI radios - Client side files

Question

Hello all,

I get an error in my RPT and the radios do not alert players in A3AXI -

The error is

Spoiler

Error in expression <entHandler {(_this select 1) call Custom\A3XAI_Client\A3XAI_client_code\A3XAI_cl>
Error position: <\A3XAI_Client\A3XAI_client_code\A3XAI_cl>
Error Missing ;

Seems simple enough, but i cannot locate the missing ; or the extra } .. Please assist?

The Code looks like this

Spoiler

if (hasInterface) then {
	_nul = [] spawn {
		waitUntil {uiSleep 1; alive player};
		waitUntil {uiSleep 1; (typeOf player) isEqualTo "Exile_Unit_Player"};
		#include "A3XAI_client_version.txt"

		call compile preprocessFileLineNumbers "Custom\A3XAI_Client\A3XAI_client_config.sqf";
		call compile preprocessFileLineNumbers "Custom\A3XAI_Client\A3XAI_client_verifySettings.sqf";
		call compile preprocessFileLineNumbers "Custom\A3XAI_Client\A3XAI_client_functions.sqf";

		if (A3XAI_client_radio) then {
			"A3XAI_SMS" addPublicVariableEventHandler {(_this select 1) call Custom\A3XAI_Client\A3XAI_client_code\A3XAI_client_radioMessage; diag_log _this;};
		};


		diag_log format ["[A3XAI] Initialized %1 version %2. Radio enabled: %3.",A3XAI_CLIENT_TYPE,A3XAI_CLIENT_VERSION,A3XAI_client_radio];
	};
	
};

 

 

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0

Edited this?

call Custom\A3XAI_Client\A3XAI_client_code\A3XAI_client_radioMessage;

Should look like this:

call A3XAI_client_radioMessage;

 

Share this post


Link to post
Share on other sites
Advertisement
  • 0
6 hours ago, r0fus said:

Edited this?


call Custom\A3XAI_Client\A3XAI_client_code\A3XAI_client_radioMessage;

Should look like this:


call A3XAI_client_radioMessage;

 

That would break the script since its in a subfolder on the root of the main file "A3XAI_client_code".

I have the files sorted in a folder for a clean mission file.

 

Share this post


Link to post
Share on other sites
  • 0

No. It's calling the radiomessage function, not file. The file with the radio function is already defined in

call compile preprocessFileLineNumbers "Custom\A3XAI_Client\A3XAI_client_functions.sqf";

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.