Ich find den Fehler nicht
Wir benutzen das RobStore Script von MrKraken, nun haben wir das mit folgendem Code modifiziert:
Code
_shop = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param; //The object that has the action attached to it is _this. ,0, is the index of object, ObjNull is the default should there be nothing in the parameter or it's broken
... (Alles dazwischen mal rausgelassen weil wegen ist noch Standart)
_shopname = _shop;
switch(_shopname) do {
case Station_shop_1: { _shopname = Tuvanaka; };
case Station_shop_2: { _shopname = La Rochelle Ost; };
case Station_shop_3: { _shopname = Regina; };
case Station_shop_04: { _shopname = Nicolet Ost; };
case Station_shop_06: { _shopname = Belfort; };
case Station_shop_07: { _shopname = La Rochelle West; };
case Station_shop_08: { _shopname = Nicolet West; };
case Station_shop_09: { _shopname = Tanouka Sud; };
case Station_shop_10: { _shopname = Balavu; };
case Station_shop_11: { _shopname = Georgetown Mitte; };
case Station_shop_12: { _shopname = Katkoula Ost; };
case Station_shop_13: { _shopname = Verkehrsübungsplatz; };
case Station_shop_14: { _shopname = Nandai; };
case Station_shop_15: { _shopname = Harcourt; };
case Station_shop_16: { _shopname = Kotomo; };
case Station_shop_17: { _shopname = Yanukka; };
case Station_shop_18: { _shopname = Lijnhaven Industriegebiet; };
case Station_shop_19: { _shopname = Lami; };
case Station_shop_20: { _shopname = Vagalala; };
case Station_shop_21: { _shopname = Aéroport de Tanoa; };
case Station_shop_22: { _shopname = Katkoula West; };
case Station_shop_23: { _shopname = Lijnhaven; };
case Station_shop_24: { _shopname = Ouméré; };
case Station_shop_25: { _shopname = Lifou; };
case Station_shop_26: { _shopname = Georgetown Nord; };
case Station_shop_27: { _shopname = Georgetown Sud; };
case Station_shop_28: { _shopname = Tanouka Nord; };
};
_chance = random(100);
if(_chance >= 10) then {[1,format["ALARM! - Tankstelle: %1 wird ausgeraubt!", _shopname]] remoteExec ["life_fnc_broadcast",west]; };
if(_chance <= 10) then {hint format ["Der Alarm wurde nicht ausgelöst!"]; };
1 Cop = Tankstelle....
_cops = (west countSide playableUnits);
... (Ausgelassen weil wegen Standart)
Alles anzeigen
Vlt. sieht es ja jemand :-?
Danke schonmal