du musst das dann in die variablen eintragen
Beiträge von moeck
-
-
Der User ServerArma hat nicht die Berechtigung Sachen zu löschen. Siehe Log
Code[13:25:23:105179 +02:00] [Thread 2572] extDB3: SQL: Error MariaDBQueryException: DELETE command denied to user 'ServerArma'@'localhost' for table 'vehicles' [13:25:23:105194 +02:00] [Thread 4876] extDB3: SQL: Error MariaDBQueryException: DELETE command denied to user 'ServerArma'@'localhost' for table 'houses' [13:25:23:105230 +02:00] [Thread 2572] extDB3: SQL: Error MariaDBQueryException: Input: CALL deleteDeadVehicles [13:25:23:105277 +02:00] [Thread 4876] extDB3: SQL: Error MariaDBQueryException: Input: CALL deleteOldHouses [13:25:23:105700 +02:00] [Thread 7364] extDB3: SQL: Error MariaDBQueryException: DELETE command denied to user 'ServerArma'@'localhost' for table 'gangs' [13:25:23:105745 +02:00] [Thread 7364] extDB3: SQL: Error MariaDBQueryException: Input: CALL deleteOldGangs
-
klappt es? wollte das heute abend mal testen
-
Kannst DU bitte mal die extDB Logs hier anhängen?
-
-
-
Moin,
ich habe das mal getestet und man muss auch die Simulation mit ausschalten sonst kippen die Sachen trotzdem um.
Gruß,
moeck
-
You have to add the extDB and life_server as -servermod to your commandline to start Arma 3. Otherwise it will not work.
-
hm... damit habe ich es gestern getestet aber leider hat es nix gebracht. Also auf beiden wegen, kann es sein dass man die simulation für die Objekte noch ausschalten muss? kann ich ja auch nochmal probieren nur dann muss ich auf bestimmte elemente einschränken sonst bekommt man die Türen nicht mehr auf
-
ja aber vom leuchten her macht es sinn da noch lichter drauf zusetzen
-
sowohl als auch ^^. Das Server Log file und von deinem Client
-
Don ja aber über welchen Weg bringe ich das auf die Karte? Über einen Logic Marker oder packt man es in ein gesetztes Objekt rein?
-
-
Moin,
anscheinend bin ich zu blöd aber ich habe das gestern mal getestet und habe es nicht hin bekommen, dass die Objekte im Godmod sind. Vielleicht mag mir kurz einer erklären wie ich das auf der Map platziere, damit es funktioniert.
Danke,
moeck
-
hier sind die Fehler such mal nach mresToArray hier im Forum!
Code
Alles anzeigenError in expression <[[''license_civ_driver'',1],[''license_civ_b> Error position: <license_civ_driver'',1],[''license_civ_b> Error Missing ] Error in expression <[[''license_civ_driver'',1],[''license_civ_b> Error position: <license_civ_driver'',1],[''license_civ_b> Error Missing ] Error in expression <y = call compile format ["%1", _array]; _array;> Error position: <_array;> Error Undefined variable in expression: _array File \life_server\Functions\MySQL\fn_mresToArray.sqf [DB_fnc_mresToArray], line 25 Error in expression <[''U_OrestesBody'','''',''B_AssaultPack_rgr> Error position: <U_OrestesBody'','''',''B_AssaultPack_rgr> Error Missing ] Error in expression <[''U_OrestesBody'','''',''B_AssaultPack_rgr> Error position: <U_OrestesBody'','''',''B_AssaultPack_rgr> Error Missing ] Error in expression <y = call compile format ["%1", _array]; _array;> Error position: <_array;> Error Undefined variable in expression: _array File \life_server\Functions\MySQL\fn_mresToArray.sqf [DB_fnc_mresToArray], line 25 Error in expression <select 6)] call DB_fnc_mresToArray; if (_new isEqualType "") then {_new = call c> Error position: <_new isEqualType "") then {_new = call c> Error Undefined variable in expression: _new
-
wie gesagt das Trollpotenzial ist dabei extrem hoch und wir hatten das schon mal ohne drin und danach gab es ganz viel mimimi von den Cops
-
blackfisch na dann lag ich ja gar nicht soweit daneben, ok das mit der Public Variable hat gefehlt
und bei Start des Servers würde ich das auch eher so machen, damit man nicht gleich in den ersten 5 min das ding ausrauben kann.
-
alles klar, ich werde eventuell nächste Woche auch dafür zeit finden, da ich momentan an einem etwas größerem Umbau arbeite. Leider gibt es dabei noch das eine oder andere Problemchen was gelöst werden muss. Es war auch nicht gegen Dich persönlich gerichtet, sondern leider passiert das sehr häufig, dass Sachen einfach kopiert werden und sich die Leute nicht damit auseinander setzen
. Sollten irgendwie Probleme auftreten, werde ich natürlich unterstützen.
-
formatiere das bitte mal als code
-
moment das könnte doch eventuell funktionieren
C: fn_robshops.sqf
Alles anzeigen//private["_robber","_shop","_kassa","_ui","_progress","_pgText","_cP","_rip","_pos"]; _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 _robber = [_this,1,ObjNull,[ObjNull]] call BIS_fnc_param; //Can you guess? Alright, it's the player, or the "caller". The object is 0, the person activating the object is 1 //_kassa = 1000; //The amount the shop has to rob, you could make this a parameter of the call (community.bistudio.com/wiki/addAction). Give it a try and post below _action = [_this,2] call BIS_fnc_param;//Action name _timer = 300; if (servertime < life_nextrob) exitWith {hintSilent format ["You can not rob this station! Because there was a robbery already and all stations are warned! Please wait %1 seconds", (life_nextrob - servertime)] }; if(side _robber != civilian) exitWith { hintSilent "You can not rob this station!" }; if(_robber distance _shop > 5) exitWith { hintSilent "You need to be within 5m of the cashier to rob him!" }; if !(_kassa) then { _kassa = 1000; }; if (_rip) exitWith { hintSilent "Robbery already in progress!" }; if (vehicle player != _robber) exitWith { hintSilent "Get out of your vehicle!" }; if !(alive _robber) exitWith {}; if (currentWeapon _robber == "") exitWith { hintSilent "HaHa, you do not threaten me! Get out of here you hobo!" }; if (_kassa == 0) exitWith { hintSilent "There is no cash in the register!" }; _rip = true; _kassa = 10000 + round(random 10000); _shop removeAction _action; _shop switchMove "AmovPercMstpSsurWnonDnon"; _chance = random(100); if(_chance >= 1) then {[1,format["ALARM! - Gasstation: %1 is being robbed!", _shop]] remoteExec ["life_fnc_broadcast",west]; }; _cops = (west countSide playableUnits); if(_cops < 1) exitWith{[_vault,-1] remoteExec ["disableSerialization;",2]; hintSilent "There isnt enough Police to rob gas station!";}; disableSerialization; 5 cutRsc ["life_progress","PLAIN"]; _ui = uiNameSpace getVariable "life_progress"; _progress = _ui displayCtrl 38201; _pgText = _ui displayCtrl 38202; _pgText ctrlSetText format["Robbery in Progress, stay close (10m) (1%1)...","%"]; _progress progressSetPosition 0.01; _cP = 0.01; if(_rip) then { life_nextrob = servertime + _timer; while{true} do { uiSleep 0.85; _cP = _cP + 0.01; _progress progressSetPosition _cP; _pgText ctrlSetText format["Robbery in Progress, stay close (10m) (%1%2)...",round(_cP * 100),"%"]; _Pos = position player; // by ehno: get player pos _marker = createMarker ["Marker200", _Pos]; //by ehno: Place a Maker on the map "Marker200" setMarkerColor "ColorRed"; "Marker200" setMarkerText "!ATTENTION! robbery !ATTENTION!"; "Marker200" setMarkerType "mil_warning"; if(_cP >= 1) exitWith {}; if(_robber distance _shop > 10.5) exitWith { }; if!(alive _robber) exitWith {}; }; if!(alive _robber) exitWith { _rip = false; }; if(_robber distance _shop > 10.5) exitWith { deleteMarker "Marker200"; _shop switchMove ""; hintSilent "You need to stay within 10m to Rob registry! - Now the registry is locked."; 5 cutText ["","PLAIN"]; _rip = false; }; 5 cutText ["","PLAIN"]; titleText[format["You have stolen $%1, now get away before the cops arrive!",[_kassa] call life_fnc_numberText],"PLAIN"]; deleteMarker "Marker200"; // by ehno delete maker life_cash = life_cash + _kassa; _rip = false; life_use_atm = false; uiSleep (30 + random(180)); life_use_atm = true; if!(alive _robber) exitWith {}; }; //uiSleep _timer; _action = _shop addAction["Rob the Gas Station",life_fnc_robShops]; _shop switchMove "";
guckt mal aber das könnte schon die lösung sein
Edit: natürlich muss die life_nextrob im life Server initialisiert werden.