Jump to content
  • 0

Undefined variable in expression: _x


Dr.Sova

Question

I use script from arma 2 server, and when i install on epoch mod server, i got errors in server log rpt like this:

19:19:29 File mpmissions\DayZ_Epoch_11.Chernarus\scripts\radiation.sqf, line 12
19:19:30 Error in expression <;
{
_Dr_hx = 0;
_zr = player distance _x;   
if (_zr < (if (isnil {_x getvaria>
19:19:30   Error position: <_x;   
if (_zr < (if (isnil {_x getvaria>
19:19:30   Error Undefined variable in expression: _x
 

19:19:28 File mpmissions\DayZ_Epoch_11.Chernarus\scripts\emi.sqf, line 19
19:19:29 Error in expression <;
{
_Dr_hx = 0;
_zr = player distance _x;   
if (_zr < (if (isnil {_x getvaria>
19:19:29   Error position: <_x;   
if (_zr < (if (isnil {_x getvaria>
19:19:29   Error Undefined variable in expression: _x
 
19:19:38 File mpmissions\DayZ_Epoch_11.Chernarus\scripts\UPSMON\common\MON_functions.sqf, line 1596
19:19:39 Error in expression <;
{
_Dr_hx = 0;
_zr = player distance _x;   
if (_zr < (if (isnil {_x getvaria>
19:19:39   Error position: <_x;   
if (_zr < (if (isnil {_x getvaria>
19:19:39   Error Undefined variable in expression: _x

I think it happend because i use in my scripts this:

_zr = player distance _x;
{_x setfuel 0;} forEach _array;
{if (isplayer _x && alive _x) exitwith {_isplayer = true;}}foreach _OCercanos;

How I can fix it?

Scripts: http://rghost.ru/57750105

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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
  • Discord

×
×
  • Create New...