Alles anzeigenStringtable hin oder her die Abfrage von 0.1 Sekunden macht das kein Unterschied Schieb den String direkt darein und exec den Auf alle Player Überprüfe vorher ob in deiner Broadcast auch ein parseText hast sonst klappt das nicht
Hier
Code Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_wantedAddP.sqf Author: Description: */ if !(playerSide isEqualTo west) exitWith {hint localize "STR_Cop_wantedList_notCop";}; if ((lbCurSel 2406) isEqualTo -1) exitWith {hint localize "STR_Cop_wantedList_noPlayerSelected";}; if ((lbCurSel 2407) isEqualTo -1) exitWith {hint localize "STR_Cop_wantedList_noCrimeSelected";}; private _unit = lbData [2406,lbCurSel 2406]; _unit = call compile format ["%1",_unit]; private _amount = lbData [2407,lbCurSel 2407]; if (isNil "_unit") exitWith {}; if (isNull _unit) exitWith {}; [[3],format ["<t size='1.65' color='#00CD00'>UIPD-Fahndungsliste</t><br/><br/><t size='1.1' align='center'>=<br/>Eine Person wurde zur<br/>Fahndung ausgeschrieben<br/>=</t><br/><br/><br/><t size='0.95' align='left' color='#79CdCd'>Person:</t><t size='1.05' align='right'><br/>%1</t><br/><br/><t size='0.95' align='left' color='#79CDCD'>Ausgeschrieben von:</t><t size='1.05' align='right'><br/>%2</t>",_unit getVariable["realname",name _unit],profileName],false] remoteExecCall ["life_fnc_broadcast",RCLIENT]; if (life_HC_isActive) then { [getPlayerUID _unit,_unit getVariable ["realname",name _unit],_amount] remoteExecCall ["HC_fnc_wantedAdd",HC_Life]; } else { [getPlayerUID _unit,_unit getVariable ["realname",name _unit],_amount] remoteExecCall ["life_fnc_wantedAdd",RSERV]; };
Braucht ihr nur eure WantedAdd zu ersetzten ...
Ist ungetestet sollte aber klappen
So bei mir verbaut, klappt einwandfrei.
Code: fn_wantedaddp.sqf
#include "..\..\script_macros.hpp"
/*
File: fn_wantedAddP.sqf
Author:
*/
if !(playerSide isEqualTo west) exitWith { [(localize "STR_Cop_wantedList_notCop"),"true","fast"] call life_fnc_notification_system; };
if ((lbCurSel 2406) isEqualTo -1) exitWith { [(localize "STR_Cop_wantedList_noPlayerSelected"),"true","fast"] call life_fnc_notification_system; };
if ((lbCurSel 2407) isEqualTo -1) exitWith { [(localize "STR_Cop_wantedList_noCrimeSelected"),"true","fast"] call life_fnc_notification_system; };
private _unit = lbData [2406,lbCurSel 2406];
_unit = call compile format["%1",_unit];
private _amount = lbData [2407,lbCurSel 2407];
if (isNil "_unit") exitWith {};
if (isNull _unit) exitWith {};
[[3],format [localize "STR_Wanted_AddP",_unit getVariable["realname",name _unit],profileName],false] remoteExecCall ["life_fnc_broadcast",RCLIENT];
if (life_HC_isActive) then {
[getPlayerUID _unit,_unit getVariable ["realname",name _unit],_amount] remoteExecCall ["HC_fnc_wantedAdd",HC_Life];
} else {
[getPlayerUID _unit,_unit getVariable ["realname",name _unit],_amount] remoteExecCall ["life_fnc_wantedAdd",RSERV];
};
Alles anzeigen