In der Original Datei ist kein größer unterschied https://github.com/AsYetUntitled/…ouseCleanup.sqf
Beiträge von AmaZiinG
-
-
Hat jemand eine Idee ?
-
gibt es da nicht einen fix bei github? wegen den Container
Ich habe ein verändertes Housing System.
-
Hey Leute,
wenn ich mir ein Haus kaufe wird das Haus nicht in der Datenbank abgespeichert. Ich habe keinen Fehler in den ExtDB3 Logs.
Ich bekomme in den Server Logs folgenden Fehler angezeigt:
Code
Alles anzeigen2017/03/25, 12:46:30 Error in expression <urniture; { deleteVehicle _x; } forEach _container; } forEach _containers; > 2017/03/25, 12:46:30 Error position: <_container; } forEach _containers; > 2017/03/25, 12:46:30 Error Undefined variable in expression: _container 2017/03/25, 12:46:30 File \life_server\Functions\Housing\fn_houseCleanup.sqf [TON_fnc_houseCleanup], line 21 2017/03/25, 12:46:30 Error in expression <urniture; { deleteVehicle _x; } forEach _container; } forEach _containers; > 2017/03/25, 12:46:30 Error position: <_container; } forEach _containers; > 2017/03/25, 12:46:30 Error Undefined variable in expression: _container 2017/03/25, 12:46:30 File \life_server\Functions\Housing\fn_houseCleanup.sqf [TON_fnc_houseCleanup], line 21
Hier ist meine fn_houseCleanup.sqf:
Code
Alles anzeigen/* File: fn_houseCleanup.sqf Author: NiiRoZz Description: Cleans up containers inside in house of player. */ private ["_query","_containers"]; _query = format ["SELECT pid, pos FROM containers WHERE pid='%1' AND owned='1'",_this]; _containers = [_query,2,true] call DB_fnc_asyncCall; if (count _containers isEqualTo 0) exitWith {}; { _pos = call compile format ["%1",_x select 1]; _lifeContainers = getArray(missionConfigFile >> "CfgDonkeyPunchCustoms" >> "LifeContainers"); _lifeFurniture = getArray(missionConfigFile >> "CfgDonkeyPunchCustoms" >> "BuildableFurniture"); _lifeContainers = _lifeContainers + _lifeFurniture; { deleteVehicle _x; } forEach _container; } forEach _containers;
Mfg
AmaZiinG
-
moeck weißt du für was diese Zahl steht ? 4573834057905734
-
Die 4 Einträge sind jetzt drinnen.
-
Ich bekomme folgenden Fehler jetzt:
Code
Alles anzeigen2017/03/22, 14:05:44 "extDB3: Connected to Database" 2017/03/22, 14:05:44 "----------------------------------------------------------------------------------------------------" 2017/03/22, 14:05:44 "---------------------------------- Starting Altis Life Server Init ---------------------------------" 2017/03/22, 14:05:44 "------------------------------------------ Version 5.0.0 -------------------------------------------" 2017/03/22, 14:05:44 "----------------------------------------------------------------------------------------------------" 2017/03/22, 14:05:44 Attempt to override final function - bis_fnc_storeparamsvalues_data 2017/03/22, 14:05:44 "----------------------------------------------------------------------------------------------------" 2017/03/22, 14:05:44 " End of Altis Life Server Init :: Total Execution Time 0.0849991 seconds " 2017/03/22, 14:05:44 "----------------------------------------------------------------------------------------------------" 2017/03/22, 14:05:44 "I AM A PLACEHOLDER: []" 2017/03/22, 14:05:44 "User joined, President PID <null>" 2017/03/22, 14:05:44 Error in expression <d = _queryResult select 0; if (typeName _pid == typeName "") then {hint "GOVERME> 2017/03/22, 14:05:44 Error position: <_pid == typeName "") then {hint "GOVERME> 2017/03/22, 14:05:44 Error Undefined variable in expression: _pid 2017/03/22, 14:05:44 File \life_server\Functions\Goverment\fn_govLogged.sqf [TON_fnc_govLogged], line 8
Hier ist meine fn_govLogged.sqf:
Code
Alles anzeigen_caller = _this select 0; _query = format["SELECT laws FROM goverment WHERE id='2'"]; //waitUntil{sleep (random 0.3); !DB_Async_Active}; _queryResult = [_query,2] call DB_fnc_asyncCall; diag_log format ["I AM A PLACEHOLDER: %1",_queryResult]; _pid = _queryResult select 0; if (typeName _pid == typeName "") then {hint "GOVERMENT:_DATABASEENTRY WAS TYPE OF STRING: CORRECT";}; if (typeName _pid == typeName 0) then {_pid = [_pid] call DB_fnc_numberSafe;}; diag_log format ["User %1 joined, President PID %2",getplayerUID _caller,_pid]; if (getplayerUID _caller == _pid) then { [1] remoteExec ["life_fnc_recievedCall",_caller]; };
-
Danke moeck werde es gleich mal austesten
-
Hey Leute,
ich schreibe zur Zeit ein älteres goverment um. Mein Problem ist zu zeit der Datenbank code.
Hier mal der SQL Code:
Code
Alles anzeigenCREATE TABLE `goverment` ( `id` INT NOT NULL DEFAULT 1, `laws` TEXT NOT NULL, PRIMARY KEY (`id`)); INSERT INTO `goverment` VALUES (1,'[]'); INSERT INTO `goverment` VALUES (2,'4573834057905734'); INSERT INTO `goverment` VALUES (3,'0'); INSERT INTO `goverment` VALUES (4,'20'); ALTER TABLE `goverment` MODIFY COLUMN `laws` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL AFTER `id`;
Meine Frage ist ob der SQL-Code so richtig ist oder ob man noch was ändern muss.
-
-
-
-
3.1.4.8 wird nicht funktionieren auf einem 64 Bit Server wegen extDB . Du brauchst extDB3
-
-
Versuchs mal damit, die cases waren außerhalb der switch :p
Bruh danke
Edit: Menü öffnet sich aber kann nix mit leertaste setzten.
-
-
Bekomme folgenden Fehler:
Code
Alles anzeigencase 39: { if ((isNull(findDisplay 20000> 15:54:34 Error position: <case 39: { if ((isNull(findDisplay 20000> 15:54:34 Error Fremdfehler: Invalid switch block 15:54:34 File core\functions\fn_keyHandler.sqf [life_fnc_keyHandler], line 121 15:54:34 Error in expression <]; _handled = true; }; }; }; true; }; case 39: { if ((isNull(findDisplay 20000> 15:54:34 Error position: <case 39: { if ((isNull(findDisplay 20000> 15:54:34 Error Fremdfehler: Invalid switch block 15:54:34 File core\functions\fn_keyHandler.sqf [life_fnc_keyHandler], line 121
Hier ist mal case :
Code
Alles anzeigenif (life_container_active) then { switch (_code) do { case 57: { [] spawn life_fnc_placestorage; if (!_shift && life_barrier_active) then { 0 spawn life_fnc_placeablesPlaceComplete; }; if (isNil "jumpActionTime") then {jumpActionTime = 0;}; if (_shift && {!(animationState player isEqualTo "AovrPercMrunSrasWrflDf")} && {isTouchingGround player} && {stance player isEqualTo "STAND"} && {speed player > 2} && {!life_is_arrested} && {((velocity player) select 2) < 2.5} && {time - jumpActionTime > 1.5}) then { if (life_barrier_active) then { [true] call life_fnc_placeableCancel; }; jumpActionTime = time; //Update the time. [player] remoteExec ["life_fnc_jumpFnc",RANY]; //Global execution _handled = true; }; }; }; true; }; case 39: { if ((isNull(findDisplay 20000)) && (playerSide in ([west,independent]))) then { 0 spawn life_fnc_placeablesMenu; _handled = true; }; _handled = true; };
-
Habe es mal geändert
-
-
BerkoCelo Schick auch mal deine extdb3-conf.ini bitte