Forum Jump :

Author Message


Posts: 16
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Sgt. Justin

 
#1 Posted at 2017-09-05 15:05        
     
Vehicle lock not working
//Respawn prowlers locked
_prowlerClassArray = ["B_T_LSV_01_armed_F", "B_T_LSV_01_armed_CTRG_F", "B_T_LSV_01_unarmed_F", "B_T_LSV_01_unarmed_CTRG_F", "B_LSV_01_armed_F", "B_LSV_01_unarmed_F", "B_LSV_01_armed_sand_F", "B_LSV_01_armed_olive_F", "B_LSV_01_armed_black_F", "B_CTRG_LSV_01_light_F", "B_LSV_01_unarmed_black_F", "B_LSV_01_unarmed_sand_F", "B_LSV_01_unarmed_olive_F"], "B_T_LSV_01_armed_black_F", "B_T_LSV_01_armed_olive_F", "B_T_LSV_01_armed_sand_F", "B_T_LSV_01_unarmed_black_F", "B_T_LSV_01_unarmed_olive_F", "B_T_LSV_01_unarmed_sand_F"];
if ((typeOf _v in _prowlerClassArray)) then {
    _v lock true;
    _v lockCargo true;
};

Error missing ";"

Error
11:00:21 Error in expression <ed_olive_F", "B_T_LSV_01_unarmed_sand_F"];
if ((typeOf _v in _prowlerClassArray)>
11:00:21   Error position: <];
if ((typeOf _v in _prowlerClassArray)>
11:00:21   Error Missing ;
11:00:21 File functions\Vehicle\fn_vmonitor.sqf [AW_fnc_vmonitor], line 60


Just from rereading it over and over i noticed an extra ] in the code which is causing the errors :P

This post was edited by LordComfy (2017-09-05 20:43, 48 days ago)