Help with RPT error fn_onPlayerConnected

  • Offline Matt76
  • Mercenary
  • *****
  • Posts: 418
  • co founder of customcombatgaming.com

Help with RPT error fn_onPlayerConnected

« posted: May 22, 2016, 07:29 PM »
Can anyone shed any light why i get the following error please ?

Code: [Select]
13:59:52 "Player connected: Mike Hunt [False] (76561198192174931)"
13:59:52 Error in expression <hen
{
[_spawnTimestamps, diag_tickTime] remoteExec ["A3W_fnc_setSpawnTimestamps">
13:59:52   Error position: <remoteExec ["A3W_fnc_setSpawnTimestamps">
13:59:52   Error Type Bool, expected Number, Side, Object, Group, String
13:59:52 File mpmissions\__cur_mp.stratis\server\functions\fn_onPlayerConnected.sqf, line 18

here is my fn_onPlayerConnected which is the latest version
Code: [Select]
// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
// @file Name: fn_onPlayerConnected.sqf
// @file Author: AgentRev

params ["_id", "_uid", "_name", "_owner", "_jip"];

diag_log format ["Player connected: %1 (%2)", _name, _uid];
if (_uid isEqualTo "") exitWith {};

missionNamespace setVariable ["A3W_joinTickTime_" + _uid, diag_tickTime];

private _spawnTimestamps = missionNamespace getVariable ["A3W_spawnTimestamps_" + _uid, []];

if !(_spawnTimestamps isEqualTo []) then
{
[_spawnTimestamps, diag_tickTime] remoteExec ["A3W_fnc_setSpawnTimestamps", _owner]; // do not whitelist
};
  • Offline Matt76
  • Mercenary
  • *****
  • Posts: 418
  • co founder of customcombatgaming.com