• 0
Golias

Error and list of potential small errors

Question

Dear Exile team,

Like on the server side, I am submitting a report of issues compiled by the SQF analyzer on the client code. Do not assume that every warning should be dealt with, but there is an important bug in the code:

In file `ExileClient_util_string_padLeft.sqf`, the code

while ((count _result) < _targetLength) do 
{
	_result = _padding + _result;
};

either never runs, or runs indefinitely and is likely semantically wrong. I suspect you want to use curly brackets.

The full report:

ExileClient_gui_payTerritoryProtectionMoneyDialog_show.sqf
	[24,2]:warning:Local variable "_name" assigned to an outer scope (not private)
	[25,36]:warning:Local variable "_name" is not from this scope (not private)
ExileClient_gui_safezone_safeESP.sqf
	[27,5]:warning:Local variable "_name" assigned to an outer scope (not private)
	[31,15]:warning:Local variable "_name" is not from this scope (not private)
	[31,7]:warning:Local variable "_name" assigned to an outer scope (not private)
	[35,34]:warning:Local variable "_name" is not from this scope (not private)
	[35,26]:warning:Local variable "_name" assigned to an outer scope (not private)
	[41,35]:warning:Local variable "_name" is not from this scope (not private)
ExileClient_gui_upgradeTerritoryDialog_show.sqf
	[24,2]:warning:Local variable "_name" assigned to an outer scope (not private)
	[25,36]:warning:Local variable "_name" is not from this scope (not private)
ExileClient_gui_xm8_slide_hostParty_event_onOkayButtonClick.sqf
	[41,1]:warning:Local variable "_group" assigned to an outer scope (not private)
	[42,1]:warning:Local variable "_group" is not from this scope (not private)
	[43,21]:warning:Local variable "_group" is not from this scope (not private)
	[44,28]:warning:Local variable "_group" is not from this scope (not private)
ExileClient_gui_xm8_slide_party_onOpen.sqf
	[17,0]:warning:Local variable "_group" assigned to an outer scope (not private)
	[18,17]:warning:Local variable "_group" is not from this scope (not private)
	[19,22]:warning:Local variable "_group" is not from this scope (not private)
	[50,113]:warning:Local variable "_group" is not from this scope (not private)
ExileClient_gui_xm8_slide_territory_onOpen.sqf
	[23,2]:warning:Local variable "_name" assigned to an outer scope (not private)
	[27,86]:warning:Local variable "_name" is not from this scope (not private)
ExileClient_object_player_identifyBody.sqf
	[16,1]:warning:Local variable "_name" assigned to an outer scope (not private)
	[17,6]:warning:Local variable "_name" is not from this scope (not private)
	[19,55]:warning:Local variable "_name" is not from this scope (not private)
ExileClient_system_network_deleteGroupPlz.sqf
	[12,0]:warning:Local variable "_group" assigned to an outer scope (not private)
	[13,9]:warning:Local variable "_group" is not from this scope (not private)
	[15,13]:warning:Local variable "_group" is not from this scope (not private)
ExileClient_system_party_network_inviteToPartyRequest.sqf
	[15,0]:warning:Local variable "_group" assigned to an outer scope (not private)
	[16,21]:warning:Local variable "_group" is not from this scope (not private)
	[20,40]:warning:Local variable "_group" is not from this scope (not private)
ExileClient_util_string_padLeft.sqf
	[17,5]:error:'while' must be followed by a code statement

Share this post


Link to post
Share on other sites

0 answers to this question

There have been no answers to this question yet

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.