Huhu Leute!
Ich hab 2 Fehler auf die ich nicht draufkomme
und zwar einmal in der fn_jailMe, an der ich nach diesem Link gegangen bin.
Angeblich fehlt in Zeile 19 ein ; nur erkenn ich nicht wo dies sein sollte.
Spoiler anzeigen
15:24:55 Error in expression < _ret > 0) then { life_bail_amount = SEL(_ret,3); } else { life_bail_amount = 15>
15:24:55 Error position: <(_ret,3); } else { life_bail_amount = 15>
15:24:55 Error Fehlendes ;
15:24:55 File mpmissions\__CUR_MP.[lexicon]Tanoa[/lexicon]\core\civilian\fn_jailMe.sqf, line 19
Spoiler anzeigen
#include "..\..\script_macros.hpp"
/*
File: fn_jail.sqf
Author: Bryan "Tonic" Boardwine
Description:
Starts the initial process of jailing.
*/
private ["_illegalItems"];
params [
["_unit",objNull,[objNull]],
["_bad",false,[false]],
["_time",15,[0]]
];
if (isNull _unit) exitWith {}; //Dafuq?
if (_unit != player) exitWith {}; //Dafuq?
if (life_is_arrested) exitWith {}; //Dafuq i'm already arrested
_illegalItems = LIFE_SETTINGS(getArray,"jail_seize_vItems");
player setVariable ["restrained",false,true];
player setVariable ["Escorting",false,true];
player setVariable ["transporting",false,true];
titleText[localize "STR_Jail_Warn","PLAIN"];
hint localize "STR_Jail_LicenseNOTF";
player setPos (getMarkerPos "jail_marker");
if (_bad) then {
waitUntil {alive player};
sleep 1;
};
//Check to make sure they goto check
if (player distance (getMarkerPos "jail_marker") > 40) then {
player setPos (getMarkerPos "jail_marker");
};
[1] call life_fnc_removeLicenses;
{
_amount = ITEM_VALUE(_x);
if (_amount > 0) then {
[false,_x,_amount] call life_fnc_handleInv;
};
} forEach _illegalItems;
life_is_arrested = true;
if (LIFE_SETTINGS(getNumber,"jail_seize_inventory") isEqualTo 1) then {
[] spawn life_fnc_seizeClient;
} else {
removeAllWeapons player;
{player removeMagazine _x} forEach (magazines player);
};
if (life_HC_isActive) then {
[player,_bad,_time] remoteExecCall ["HC_fnc_jailSys",HC_Life];
} else {
[player,_bad,_time] remoteExecCall ["life_fnc_jailSys",RSERV];
};
[5] call SOCK_fnc_updatePartial;
Alles anzeigen
und einaml in der fn_captureHideoutm, an der ich nichts verändert habe. Nur die Map auf [lexicon]Tanoa[/lexicon] umgestellt habe.
Spoiler anzeigen
15:25:51 Error in expression <Barracks_V2_F"],25]) select 0;
_group = _hideout getVariable ["gangOwner",grpNul>
15:25:51 Error position: <_hideout getVariable ["gangOwner",grpNul>
15:25:51 Error Nicht definierte Variable in Ausdruck: _hideout
15:25:51 File mpmissions\__CUR_MP.[lexicon]Tanoa[/lexicon]\core\actions\fn_captureHideout.sqf, line 11
15:25:51 Error in expression <= _ui displayCtrl 38202;
_cP = _cP + _cpRate;
_progressBar progressSetPositio>
15:25:51 Error position: <_cpRate;
_progressBar progressSetPositio>
15:25:51 Error Nicht definierte Variable in Ausdruck: _cprate
15:25:51 File mpmissions\__CUR_MP.[lexicon]Tanoa[/lexicon]\core\actions\fn_captureHideout.sqf, line 57
15:25:51 Error in expression <eText = _ui displayCtrl 38202;
15:25:54 Error in expression <ue];};
if (life_interrupted) exitWith {_hideout setVariable ["inCapture",false,>
15:25:54 Error position: <_hideout setVariable ["inCapture",false,>
15:25:54 Error Nicht definierte Variable in Ausdruck: _hideout
15:25:54 File mpmissions\__CUR_MP.[lexicon]Tanoa[/lexicon]\core\actions\fn_captureHideout.sqf, line 64
15:25:54 Error in expression <eText = _ui displayCtrl 38202;
Spoiler anzeigen
#include "..\..\script_macros.hpp"
/*
File: fn_captureHideout.sqf
Author: Bryan "Tonic" Boardwine
Description:
Blah blah.
*/
private["_group","_hideout","_action","_cpRate","_cP","_progressBar","_title","_titleText","_ui","_flagTexture"];
_hideout = (nearestObjects[getPosATL player,["Land_u_Barracks_V2_F","Land_i_Barracks_V2_F"],25]) select 0;
_group = _hideout getVariable ["gangOwner",grpNull];
if (isNil {group player getVariable "gang_name"}) exitWith {titleText[localize "STR_GNOTF_CreateGang","PLAIN"];};
if (_group == group player) exitWith {titleText[localize "STR_GNOTF_Controlled","PLAIN"]};
if ((_hideout getVariable ["inCapture",false])) exitWith {hint localize "STR_GNOTF_onePersonAtATime";};
if (!isNull _group) then {
_gangName = _group getVariable ["gang_name",""];
_action = [
format[localize "STR_GNOTF_AlreadyControlled",_gangName],
localize "STR_GNOTF_CurrentCapture",
localize "STR_Global_Yes",
localize "STR_Global_No"
] call BIS_fnc_guiMessage;
_cpRate = 0.0045;
} else {
_cpRate = 0.0075;
};
if (!isNil "_action" && {!_action}) exitWith {titleText[localize "STR_GNOTF_CaptureCancel","PLAIN"];};
life_action_inUse = true;
//Setup the progress bar
disableSerialization;
_title = localize "STR_GNOTF_Capturing";
5 cutRsc ["life_progress","PLAIN"];
_ui = uiNamespace getVariable "life_progress";
_progressBar = _ui displayCtrl 38201;
_titleText = _ui displayCtrl 38202;
_titleText ctrlSetText format["%2 (1%1)...","%",_title];
_progressBar progressSetPosition 0.01;
_cP = 0.01;
for "_i" from 0 to 1 step 0 do {
if (animationState player != "AinvPknlMstpSnonWnonDnon_medic_1") then {
[player,"AinvPknlMstpSnonWnonDnon_medic_1",true] remoteExecCall ["life_fnc_animSync",RCLIENT];
player switchMove "AinvPknlMstpSnonWnonDnon_medic_1";
player playMoveNow "AinvPknlMstpSnonWnonDnon_medic_1";
};
sleep 0.26;
if (isNull _ui) then {
5 cutRsc ["life_progress","PLAIN"];
_ui = uiNamespace getVariable "life_progress";
_progressBar = _ui displayCtrl 38201;
_titleText = _ui displayCtrl 38202;
};
_cP = _cP + _cpRate;
_progressBar progressSetPosition _cP;
_titleText ctrlSetText format["%3 (%1%2)...",round(_cP * 100),"%",_title];
_hideout setVariable ["inCapture",true,true];
if (_cP >= 1 || !alive player) exitWith {_hideout setVariable ["inCapture",false,true];};
if (life_istazed) exitWith {_hideout setVariable ["inCapture",false,true];}; //Tazed
if (life_isknocked) exitWith {_hideout setVariable ["inCapture",false,true];}; //Knocked
if (life_interrupted) exitWith {_hideout setVariable ["inCapture",false,true];};
};
//Kill the UI display and check for various states
5 cutText ["","PLAIN"];
player playActionNow "stop";
if (!alive player || life_istazed || life_isknocked) exitWith {life_action_inUse = false;_hideout setVariable ["inCapture",false,true];};
if (player getVariable ["restrained",false]) exitWith {life_action_inUse = false;_hideout setVariable ["inCapture",false,true];};
if (life_interrupted) exitWith {life_interrupted = false; titleText[localize "STR_GNOTF_CaptureCancel","PLAIN"]; life_action_inUse = false;_hideout setVariable ["inCapture",false,true];};
life_action_inUse = false;
titleText[localize "STR_GNOTF_Captured","PLAIN"];
_flagTexture = [
"\A3\Data_F\Flags\Flag_red_CO.paa",
"\A3\Data_F\Flags\Flag_green_CO.paa",
"\A3\Data_F\Flags\Flag_blue_CO.paa",
"\A3\Data_F\Flags\Flag_white_CO.paa",
"\A3\Data_F\Flags\flag_fd_red_CO.paa",
"\A3\Data_F\Flags\flag_fd_green_CO.paa",
"\A3\Data_F\Flags\flag_fd_blue_CO.paa",
"\A3\Data_F\Flags\flag_fd_orange_CO.paa"
] call BIS_fnc_selectRandom;
_this select 0 setFlagTexture _flagTexture;
[[0,1],"STR_GNOTF_CaptureSuccess",true,[name player,(group player) getVariable "gang_name"]] remoteExecCall ["life_fnc_broadcast",RCLIENT];
_hideout setVariable ["inCapture",false,true];
_hideout setVariable ["gangOwner",group player,true];
Alles anzeigen
Die RPT logs hab ich im Anhang hinzugefügt.
Ich hoffe ihr könnt mir helfen!
PS: Den error in der Statusbar kenn ich und werd ihn fixen
PPS: Für andere fehler bin ich gerne offen
LG Askeroth