Jump to content
  • 0

Type Array object expected.....$#%$^


Sandbird

Question

Am i crazy or is Arma a stupid scripting language.

I am sending some stuff to the server_updateObject.sqf

This is the data the diag_log pints out.

"[2a6f10c0# 1056358: atv.p3d,"lalalala",Sandbird,"ATV_US_EP1","5311","Blue Key (0b8f)","40","485239946200"]"

Now the server_updateObject has this on the top

_object = _this select 0;
if(isNull(_object)) exitWith {
    diag_log format["Skipping Null Object: %1", _object];
};

Now..HOW THE HELL is that an Array....when i am selecting the 1st element and IT IS A FREAKING OBJECT ........ ?!?  This is the error..

 Error isnull: Type Array, expected Object,Group,Display (dialog),Control,Task,Location
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Well its the code from the Vehicle key Changer :

 

Inside VehicleChanger.sqf at the bottom it has:

    PVDZE_veh_Update = [_targetVehicle, "vehiclekey", player, _targetVehicleClassname, keyNumberSelect, keyNameSelect, _targetVehicleID, _targetVehicleUID];
    publicVariableServer "PVDZE_veh_Update";

I diag_logged all the values before i send them i get :

diag_log format["%1----%2----%3----%4---%5----%6----%7----%8",_targetVehicle, "vehiclekey", player, _targetVehicleClassname, keyNumberSelect, keyNameSelect, _targetVehicleID, _targetVehicleUID];

"2a714100# 1056510: suv.p3d----vehiclekey----Sandbird----SUV_Camo---5922----Blue Key (19da)----36----485239945800"

Then i get that error in server_updateObject at line 3...with is the isNull part. Its just freaking weird

_object = _this select 0;

if(isNull(_object)) exitWith {
	diag_log format["Skipping Null Object: %1", _object];
};

if i remove that if...then it crashes at line 5

_parachuteWest = ((typeOf _object == "ParachuteWest") or (typeOf _object == "ParachuteC"));

same error

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...