Jump to content
kirky1423uk

truck mission dp mission

Recommended Posts

morning all iv tried doing this truck mission from a tut on here any one tell me were iv gone wrong cheers                                   

Error in expression <ir = markerDir "truck_mission_spawn1";

} else {
_dp = getArray(missionConfigFil>
  Error position: <} else {
_dp = getArray(missionConfigFil>
  Error Missing {
File core\actions\fn_getDPMission.sqf [life_fnc_getDPMission], line 80
Error in expression <ir = markerDir "truck_mission_spawn1";

} else {
_dp = getArray(missionConfigFil>
  Error position: <} else {
_dp = getArray(missionConfigFil>
  Error Missing {
File core\actions\fn_getDPMission.sqf [life_fnc_getDPMission], line 80
Error in expression <With {};
if(!_isVehicle && !(_curTarget GVAR ["restrained",false])) exitWith {};>
  Error position: <GVAR ["restrained",false])) exitWith {};>
  Error Missing )
File core\items\fn_lockpick.sqf [life_fnc_lockpick], line 78
Error in expression <With {};
if(!_isVehicle && !(_curTarget GVAR ["restrained",false])) exitWith {};>
  Error position: <GVAR ["restrained",false])) exitWith {};>
  Error Missing )
File core\items\fn_lockpick.sqf [life_fnc_lockpick], line 78
"<infiSTAR.de> 0 - run.sqf - finaled EPOCH_server_isPAdmin: {true}"
"<infiSTAR.de> 0 - run.sqf - including AntiHack"
"<infiSTAR.de> VERSION: 29-06-2017 08-25-35 infiSTAR.de AHAT (v0249)"
"<infiSTAR.de> 0 - STARTING"
"<infiSTAR.de> 0 - TESTING IF serverCommandPassword IS SET PROPERLY"
"<infiSTAR.de> 0 - serverCommandPassword IS FINE"
CallExtension loaded: armalog (.\armalog.dll) [1.0.0.0] [1.0.0.0]

Share this post


Link to post
Share on other sites

if-else statement has been half deleted. Causing an error because there was a missing '{'.

As for the second issue you're having, the reason it is throwing an error is because the original author/editor has used macros to define setVariable and getVariable among other things.

Which you obviously have not done, could you link the tutorial that you followed?

 

Share this post


Link to post
Share on other sites

iv managed to sort out the lock pick message its now this last one        } else {
_dp = getArray(missionConfigFil>
  Error position: <} else {
_dp = getArray(missionConfigFil>
  Error Missing {
File core\actions\fn_getDPMission.sqf [life_fnc_getDPMission], line 80
Error in expression <ir = markerDir "truck_mission_spawn1";

Share this post


Link to post
Share on other sites

Firstly, this script is not the most fine tuned script out there. There are a few issues with it, one being that in its raw form a player doesn't need to drive the truck at all. All they need to do is get to the DP. Anyways....

 

16 hours ago, kirky1423uk said:

iv managed to sort out the lock pick message its now this last one        } else {
_dp = getArray(missionConfigFil>
  Error position: <} else {
_dp = getArray(missionConfigFil>
  Error Missing {
File core\actions\fn_getDPMission.sqf [life_fnc_getDPMission], line 80
Error in expression <ir = markerDir "truck_mission_spawn1";

 

You did a few things wrong... Like all of it.

I think you should really take more time to understand something before you copy/paste it instead of expecting us to clean up the aftermath.

Anyways, here is a completed and working version of the 'fn_getDPMission.sqf' with truck missions: https://pastebin.com/GH2rEYcw (Replace the entire file with this)

FYI this work does not belong to me. It is a simple copy and paste from @Pril-'s Tutorial, just followed correctly. 

I recommend cross-referencing the two files to see where you went wrong, that way you actually learn something from this, rather than it just being a simple 'spoon-feeding' experience.

Edited by KillerAussie

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×