Jump to content
  • 0
Sign in to follow this  

Undefined variable in expression: _x


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

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By 2DayZ2Retirement
      G'day, Survivors.
      I am having an issue on my server where vehicles which spawn randomly around the map repair themselves upon server restart.
      I use this config in my init.sqf which successfully spawns the vehicles in damaged and with low fuel...
      DynamicVehicleDamageLow = 75;
      DynamicVehicleDamageHigh = 100;
      DynamicVehicleFuelLow = 0;
      DynamicVehicleFuelHigh = 25;
      ...However upon each server restart the vehicles repair themselves (the fuel remains low however) and for the life of me I can't figure out why this is happening. 
      DayZ Version -DayZ Epoch
      Scripts Used -DZAI | -DZMS | -Right Click Actions (Suicide, Smoke Drugs, GPS Scan)
      AntiHack - InfiSTAR
      Server Host - GTXGaming
      My HiveEXT.log and arma2oaserver.RPT logs are not showing anything out of the ordinary.
      I'm not sure if it matter, but all Planes/Helicopters and Boats have been removed from the server via the dynamic_vehicle.sqf.
      In addition, all of the traders and trader cities being removed by removing the call for the CfgServerTrader.hpp in the description.ext.
      If there is any other info I can show to assist in fixing this problem please let me know, any help would be greatly appreciated.
    • By McLovin
      NOTICE: Duplicate of another question posted in the wrong section.
      So I've been playing this server that has a number of mods installed. I've been playing it for quite a while with the only errors I've been getting are regarding a 45 round RPK mag being missing, but other than that I've had no errors or any issues loading. Upon trying to place a plot pole, nothing happens; absolutely nothing, like no preview shows up, no prompt saying "starting construction" or anything like that, just blankness. When I try to do it again it says "building already in progress" and I can't do anything, not even lock my vehicle. Is there anything that can be done, or that can explain this phenomenon? To further the understanding of how this came to be, I bought a plot pole from the trader in Trader City Stary and tried placing it near Stary, but not too near it (near a thicket of bushes in the distance). Upon right clicking and hitting the build option, that's when I face my issue.
    • By rocalpha
      Bonjour, j’écris aujourd’hui parce que j’aimerais savoir si vous ne pourrez pas m'aider. Je loue un serveur via gportal et j’aimerais pouvoir être mon serveur en PvE, mais aussi créer des éléments de base pour la connexion et des choses simples comme . J'ai un autre problème lorsque j'achète une voiture chère à pied cela me met une flèche rouge puis rien non aucun véhicule il apparait qu'après un redémarrage du serveur
    • By Warburgg
      I installed the dynamic climate script and it happens that it rains on the server but only lasts 10 seconds and stops. Is it because I use the script that speeds server time? I currently use Control Time which allows the server to have 2 hours of day and 1 hour night.
      The other climates such as overcast and fog last the forecast time 5-20 minutes but the rain does not.
      In my logs show: 16:52:30 "39:2 Debug: Rain set to 0.92421 for 10.6582 minutes". It rains until it rains but soon stops.
  • Advertisement
  • Supporters
  • Discord

  • Create New...