Sandbird Posted April 28, 2014 Report Share Posted April 28, 2014 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 More sharing options...
0 Defent Posted April 28, 2014 Report Share Posted April 28, 2014 I'm not sure that is the code that the error refers to, have you tried running without your code to see if that is what is causing it? - If so, please post your code so we can look at that instead. :) Sandbird 1 Link to comment Share on other sites More sharing options...
0 Sandbird Posted April 28, 2014 Author Report Share Posted April 28, 2014 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 More sharing options...
0 Sandbird Posted April 28, 2014 Author Report Share Posted April 28, 2014 Yeah i am trying to make this work in the editor first in my custom 'server in an editor' thingy, so yeah i am tweaking both files...didnt see that through....tired i guess :( Thanks ebay its obvious now. Link to comment Share on other sites More sharing options...
Question
Sandbird
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.
Now the server_updateObject has this on the top
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..
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now