when i change
_randomizedLoot = _this select 3;
_guaranteedLoot = _this select 9;
i get the following errors in the rpt log
_chute = c>
8:32:15 Error Zero divisor
8:32:15 File z\addons\dayz_server\compile\server_carepackagedrop.sqf, line 9
8:32:16 Error in expression <["if(getPlayerUID player == '86813446')th>
8:32:16 Error position: <"if(getPlayerUID player == '86813446')th>
8:32:16 Error Missing ""
and
_num = round(random _randomizedLoot) + _guaranteedLoo>
8:32:33 Error position: <random _randomizedLoot) + _guaranteedLoo>
8:32:33 Error random: Type Object, expected Number
8:32:33 File z\addons\dayz_server\compile\server_carepackagedrop.sqf, line 56
8:32:37 Error in expression <["if(getPlayerUID player == '86813446')th>
8:32:37 Error position: <"if(getPlayerUID player == '86813446')th>
8:32:37 Error Missing ""
8:32:37 Error in expression <["if(getPlayerUID player == '86813446')th>
8:32:37 Error position: <"if(getPlayerUID player == '86813446')th>
8:32:37 Error Missing ""
these errors continue on and on
if i change the 2 values back to default everything is fine
_randomizedLoot = _this select 4;
_guaranteedLoot = _this select 5;
any ideas?
Wait so the number you are changing is "_this select 4;"
If so you're doing it wrong lol
Code:
_num = round(random 3) + 9;
In the original code
Code:
_guaranteedLoot = _this select 0;
_randomizedLoot = _this select 1;
_guaranteedLoot is the 1st argument passed to the script
_randomizedLoot is the 2nd, you were trying to change these values??????
What you should have done is just change the arguments being passed in the call in server_monitor.sqf