some PRT errors

ka3ant1p

Member
Sorry for a lot of topics at one time, but I already use the forum for a month and registered only today registered, so I amassed lots of questions.
The first one seems rather easy, a missed ")" but Notepad++ shows everything is ok =(
Code:
10:08:31 Error in expression <

{
if(vehicle _x != _x && !(vehiclАe _x in PVDZE_serverObjectMonitor) && >
10:08:31 Error position: <Аe _x in PVDZE_serverObjectMonitor) && >
10:08:31 Error Missing )

The code where the error takes place is server_cleanup.fsm here is a problem part of the code:
Code:
10:08:31 Error in expression <

{
if(vehicle _x != _x && !(vehiclАe _x in PVDZE_serverObjectMonitor) && >
10:08:31 Error position: <Аe _x in PVDZE_serverObjectMonitor) && >
10:08:31 Error Missing )

Another error appears in the same file and also seems to be rather easy, missed one "}" checked with notepad++ and it is reaaly so, but I am newbie in scripts so help me please, where I should close it?
An error:
Code:
10:08:34 Error position: <IsSarAIOn or IsSarAIWithMissionsOn) then>
10:08:34 Error Undefined variable in expression: issaraion
10:08:34 Error in expression <


{

if(IsSarAIOn or IsSarAIWithMissionsOn) then>

Peace of code where it appears:
Code:
/*%FSM<STATE "general_cleanup">*/

class general_cleanup
{
name = "general_cleanup";
init = /*%FSM<STATEINIT""">*/"//diag_log ""CLEANUP: Starting loop for next task"";" \n
"" \n
"//Clean groups" \n
"{" \n
"    // diag_log (""CLEANUP: CHECKING GROUP WITH "" + str(count units _x) + "" UNITS"");" \n
" if(IsSarAIOn or IsSarAIWithMissionsOn) then { //Edited by XsG to prevent AI being cleaned up "\n
"    if ((count units _x==0) && !(_x getVariable[""SAR_protect"",false])) then {" \n
" deleteGroup _x;" \n
" // diag_log (""CLEANUP: DELETING A GROUP"");" \n
"    };" \n
" } else {" \n
"    if (count units _x==0) then {" \n
" deleteGroup _x;" \n
" // diag_log (""CLEANUP: DELETING A GROUP"");" \n
"    };" \n
" };" \n
"} forEach allGroups;"/*%FSM</STATEINIT""">*/;
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
class Links
{
/*%FSM<LINK "true">*/
class true
{
priority = 0.000000;
to="waiting";
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
condition=/*%FSM<CONDITION""">*/"true"/*%FSM</CONDITION""">*/;
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
};
/*%FSM</LINK>*/
};
};
/*%FSM</STATE>*/

Also I have an error with 1 new location I have added, suppose there are to much zero
Code:
10:07:57 Error in expression < "CAN_COLLIDE"];
_unit_4 = _this;
_this setUnitAbility 0.60000002;
if (true) the>
10:07:57 Error position: <setUnitAbility 0.60000002;
if (true) the>
10:07:57 Error setunitability: Type Nothing, expected Object
10:07:57 File mpmissions\__cur_mp.Chernarus\teritories\mapads\SafeBase.sqf, line 1498

Peace of code:

Code:
_unit_4 = objNull;
if (true) then
{
_this = _group_0 createUnit ["SurvivorW3_DZ", [1248.4065, 2512.3955, 1.4305115e-005], [], 0, "CAN_COLLIDE"];
_unit_4 = _this;
_this setUnitAbility 0.60000002;
if (true) then {_group_0 selectLeader _this;};
if (true) then {selectPlayer _this;};
if (true) then {setPlayable _this;};
};

Thanks beforehand, and sorry for my English
 
Back
Top