kann mir jemand helfen und mir sagen wie ich den ADAC Button in das Mysql smartphone bekomme?
Beiträge von Reen36
-
-
kann mir jemand helfen und mir sagen wie ich den ADAC in das Mysql smartphone bekomme?
auch den ADAC Button -
hallo liebes forum ich hab mal eine frage
und zwar wie kann ich einen Button erstellen wo man die gefarmten sachen alle auf einmal in den Kofferraum packen kann ?damit man nicht alles immer einzelnd anklicken muss oder das item anklicken muss und dann erst die menge eintragen.
würde gerne so ein (alles) Button einbauenkann mir da jemand weiter helfen pls
-
Die vehicle shops vom adac
Code
Alles anzeigenclass adac_air { side = "adac"; vehicles[] = { { "B_Heli_Transport_03_unarmed_F", { "adacAir" }, { "", "", -1 } }, { "I_Heli_light_03_unarmed_F", { "adacAir" }, { "", "", -1 } }, { "O_Heli_Light_02_unarmed_F", { "adacAir" }, { "", "", -1 } } }; }; class adac_shop { side = "adac"; vehicles[] = { { "C_Offroad_01_repair_F", { "" }, { "", "", -1 } }, { "C_SUV_01_F", { "" }, { "", "", -1 } }, { "B_Truck_01_mover_F", { "adacCar" }, { "", "", -1 } } }; };
-
das mit den preisen hat geklappt...
welche shop conifgs genau? -
das mit den preisen probiere ich gerade
hab gesehen das opfor in der config_master alles auf -1 war beim kaufen/verkaufen u.s.w
-
jop es lag daran @Rom
aber nochmals danke für deine kostbare zeit^^aber bekomme immernoch den fehler
Code
Alles anzeigenif (!(_level> 17:20:59 Error position: <select 2; _showall = true; if (!(_level> 17:20:59 Error Nullteiler 17:20:59 File mpmissions\__CUR_MP.LakesideValley\core\shops\fn_vehicleShopMenu.sqf, line 53 17:20:59 Error in expression <rt select 1; _levelValue = _levelAssert select 2; _showall = true;
und die fahrzeuge haben ein -Preis z.b der offroad -200 Price ingame
-
ahhhh genau du sagst es
villt hab ich glück und es liegt daran.
werde es mal versuchen -
Code
Alles anzeigenclass CarShops { /* * ARRAY FORMAT: * 0: STRING (Classname) * 1: ARRAY (This is for limiting items to certain things) * 0: Variable to read from * 1: Variable Value Type (SCALAR / BOOL /EQUAL) * 2: What to compare to (-1 = Check Disabled) * * BLUFOR Vehicle classnames can be found here: https://community.bistudio.com/wiki/Arma_3_CfgVehicles_WEST * OPFOR Vehicle classnames can be found here: https://community.bistudio.com/wiki/Arma_3_CfgVehicles_EAST * Independent Vehicle classnames can be found here: https://community.bistudio.com/wiki/Arma_3_CfgVehicles_GUER * Civilian Vehicle classnames can be found here: https://community.bistudio.com/wiki/Arma_3_CfgVehicles_CIV */ class civ_car { side = "civ"; vehicles[] = { { "B_Quadbike_01_F", { "", "", -1 } }, { "max_bike", { "", "", -1 } }, { "Jonzie_Ceed", { "", "", -1 } }, { "Jonzie_30CSL", { "", "", -1 } }, { "SIG_SuperBeeB", { "", "", -1 } }, { "SIG_Magnums", { "", "", -1 } }, { "DAR_ChallengerCivBlack", { "", "", -1 } }, { "red_charger_15_aqua", { "", "", -1 } }, { "ivory_gti", { "", "", -1 } }, { "max_impala_black", { "", "", -1 } }, { "CUP_C_SUV_CIV", { "", "", -1 } }, { "CUP_C_UAZ_Unarmed_TK_CIV", { "", "", -1 } }, { "RPP_FordFocus09_Base", { "", "", -1 } }, { "MG_Honda_Civic_TypeR_04_Black", { "", "", -1 } }, { "Urbanized_Lancia", { "", "", -1 } }, { "C_Hatchback_01_F", { "", "", -1 } }, { "C_SUV_01_F", { "", "", -1 } }, { "C_Hatchback_01_sport_F", { "", "", -1 } }, { "C_Van_01_transport_F", { "", "", -1 } }, { "C_Offroad_02_unarmed_F", { "", "", -1 } }, { "max_H3_urbancamo", { "", "", -1 } }, //Apex DLC { "Jonzie_Datsun_510", { "", "", -1 } }, { "Jonzie_Datsun_Z432", { "", "", -1 } }, { "Jonzie_Raptor", { "", "", -1 } }, { "Jonzie_XB", { "", "", -1 } }, { "Jonzie_VE", { "", "", -1 } }, { "Jonzie_Ute", { "", "", -1 } }, { "ivory_suburban", { "", "", -1 } }, { "ivory_m3", { "", "", -1 } }, { "max_BMW", { "", "", -1 } }, { "Mrshounka_bmwm1_civ", { "", "", -1 } }, { "BMW235_bleufonce", { "", "", -1 } }, { "Mrshounka_bmwm6_civ", { "", "", -1 } }, { "ivory_evox", { "", "", -1 } }, { "ivory_rs4", { "", "", -1 } }, { "shounka_rs6_bleufonce", { "", "", -1 } }, { "BentleyGT_bleu", { "", "", -1 } }, { "Mr_Own_buggy", { "", "", -1 } }, { "shounka_avalanche_bleufonce", { "", "", -1 } }, { "shounka_monsteur", { "", "", -1 } }, { "Sn0cky_Crossfire_blanc", { "", "", -1 } }, { "Sn0cky_DS4_blanc", { "", "", -1 } }, { "Mrshounka_ducati_p", { "", "", -1 } }, { "Mrshounka_yamaha_p", { "", "", -1 } }, { "shounka_gt", { "", "", -1 } }, { "Mrshounka_hummer_civ", { "", "", -1 } }, { "shounka_h2_bleufonce", { "", "", -1 } }, { "shounka_limo_civ", { "", "", -1 } }, { "ivory_e36", { "", "", -1 } }, { "ivory_r34", { "", "", -1 } }, { "ivory_supra", { "", "", -1 } }, { "ivory_190e", { "", "", -1 } }, { "ivory_c", { "", "", -1 } }, { "ivory_isf", { "", "", -1 } }, { "ivory_elise", { "", "", -1 } }, { "ivory_mp4", { "", "", -1 } }, { "Jonzie_STI", { "", "", -1 } }, { "ivory_gt500", { "", "", -1 } }, { "max_charger_black", { "", "", -1 } }, { "max_charger_blue", { "", "", -1 } }, { "max_charger_red", { "", "", -1 } }, { "Mrshounka_cayenne_p_civ", { "", "", -1 } }, { "red_s65_12_aqua", { "", "", -1 } }, { "shounka_clk", { "", "", -1 } }, { "Sn0cky_CL65_bleu", { "", "", -1 } }, { "Mrshounka_mercedes_190_p_civ", { "", "", -1 } }, { "Urbanized_G65_black", { "", "", -1 } }, { "Urbanized_67Mustang", { "", "", -1 } }, { "Urbanized_CTSV", { "", "", -1 } } }; }; class civ_car2 { side = "civ"; vehicles[] = { { "Jonzie_Viper", { "", "", -1 } }, { "Urbanized_458Ferrari", { "", "", -1 } }, { "Tal_Murci_Black", { "", "", -1 } }, { "Mrshounka_agera_p", { "", "", -1 } }, { "Mrshounka_lykan_c", { "", "", -1 } }, { "Mrshounka_pagani_c", { "", "", -1 } }, { "shounka_porsche911", { "", "", -1 } }, { "ivory_veyron", { "", "", -1 } }, { "ivory_f1", { "", "", -1 } }, { "MG_Audi_R8_11_White", { "", "", -1 } }, { "Urbanized_LaFerrari", { "", "", -1 } } }; }; class adac_air_hs { side = "adac"; vehicles[] = { { "B_Heli_Transport_03_unarmed_F", 75000, { "adacAir" }, { "", "", -1 } }, { "I_Heli_light_03_unarmed_F", 60000, { "adacAir" }, { "", "", -1 } }, { "O_Heli_Light_02_unarmed_F", 60000, { "adacAir" }, { "", "", -1 } } }; }; class adac_shop { side = "adac"; vehicles[] = { { "C_Offroad_01_repair_F", 1500, { "" }, { "", "", -1 } }, { "C_SUV_01_F", 2000, { "" }, { "", "", -1 } }, { "B_Truck_01_mover_F", 25000, { "adacCar" }, { "", "", -1 } } }; };
sind überall -1
-
Code
Alles anzeigenclass LifeCfgVehicles { /* * Vehicle Configs (Contains textures and other stuff) * * "price" is the price before any multipliers set in Master_Config are applied. * * Default Multiplier Values & Calculations: * Civilian [Purchase, Sell]: [1.0, 0.5] * Cop [Purchase, Sell]: [0.5, 0.5] * Medic [Purchase, Sell]: [0.75, 0.5] * ChopShop: Payout = price * 0.25 * GarageSell: Payout = price * [0.5, 0.5, 0.5, -1] * Cop Impound: Payout = price * 0.1 * Pull Vehicle from Garage: Cost = price * [1, 0.5, 0.75, -1] * [0.5, 0.5, 0.5, -1] * -- Pull Vehicle & GarageSell Array Explanation = [civ,cop,medic,east] * * 1: ARRAY (license required) * Ex: { "driver", "" , "" , "" } //civilian, west, independent, east * licenses[] = { {"CIV"}, {"COP"}, {"MEDIC"}, {"EAST"} }; * Textures config follows { Texture Name, side, {texture(s)path}} * Texture(s)path follows this format: * INDEX 0: Texture Layer 0 * INDEX 1: Texture Layer 1 * INDEX 2: Texture Layer 2 * etc etc etc * */ class Default { vItemSpace = -1; licenses[] = { {""}, {""}, {""}, {""} }; price = -1; textures[] = {}; }; class C_Offroad_01_repair_F { vItemSpace = 65; licenses[] = { {""}, {""}, {""}, {""} }; price = 200; textures[] = { { "ADAC", "adac", {"textures\adac_offroad.jpg"} } }; }; class B_Truck_01_mover_F { vItemSpace = 1000; licenses[] = { {""}, {""}, {""}, {""} }; price = 200; textures[] = { { "ADAC", "adac", {"textures\adac_hemtt.jpg"} } }; }; class I_Heli_light_03_unarmed_F { vItemSpace = 210; licenses[] = { {""}, {""}, {""}, {""} }; price = 200; textures[] = { { "ADAC", "adac", {"textures\hellcat_adac.jpg"} } }; }; class B_Heli_Transport_03_unarmed_F { vItemSpace = 1000; licenses[] = { {""}, {""}, {""}, {""} }; price = 200; textures[] = { { "ADAC", "adac", {"textures\huron_pd1.jpg","textures\huron_pd2.jpg"} } }; };
wäre die oder?
-
was wie welche datei soll ich drinnen nachgucken??
-
hab leider ein neues problem
es werden keine helis oder farhzeuge in den shops gezeigt obwohl alles richtig eingetragen ist.kann es hiermit zusammen hängen?? @Rom
CodeError select: Typ Zahl, erwartet Array,Zeichenfolge,Config entry 16:37:17 File mpmissions\__CUR_MP.LakesideValley\core\shops\fn_vehicleShopMenu.sqf, line 51
Code
Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_vehicleShopMenu.sqf Author: Bryan "Tonic" Boardwine Description: Blah */ private ["_shop","_sideCheck","_spawnPoints","_shopFlag","_shopTitle","_disableBuy"]; (_this select 3) params [ ["_shop","",[""]], ["_sideCheck",sideUnknown,[civilian]], ["_spawnPoints","",["",[]]], ["_shopFlag","",[""]], ["_shopTitle","",[""]], ["_disableBuy",false,[true]] ]; disableSerialization; //Long boring series of checks if (dialog) exitWith {}; if (_shop isEqualTo "") exitWith {}; if (_sideCheck != sideUnknown && {playerSide != _sideCheck}) exitWith {hint localize "STR_Shop_Veh_NotAllowed"}; if (LIFE_SETTINGS(getNumber,"vehicleShop_3D") isEqualTo 1) then { createDialog "Life_Vehicle_Shop_v2_3D"; } else { createDialog "Life_Vehicle_Shop_v2"; }; life_veh_shop = [_shop,_spawnpoints,_shopFlag,_disableBuy]; //Store it so so other parts of the system can access it. ctrlSetText [2301,_shopTitle]; if (_disableBuy) then { //Disable the buy button. ctrlEnable [2309,false]; }; //Fetch the shop config. _vehicleList = M_CONFIG(getArray,"CarShops",_shop,"vehicles"); _control = CONTROL(2300,2302); lbClear _control; //Flush the list. ctrlShow [2330,false]; ctrlShow [2304,false]; //Loop through { _className = _x select 0; _levelAssert = _x select 1; _levelName = _levelAssert select 0; _levelType = _levelAssert select 1; _levelValue = _levelAssert select 2; _showall = true; if (!(_levelValue isEqualTo -1)) then { _level = missionNamespace getVariable _levelName; if (_level isEqualType {}) then {_level = FETCH_CONST(_level);}; _showall = switch (_levelType) do { case "SCALAR": {_level >= _levelValue}; case "BOOL": {_level}; case "EQUAL": {_level isEqualTo _levelValue}; default {false}; }; }; if (_showall) then { _vehicleInfo = [_className] call life_fnc_fetchVehInfo; _control lbAdd (_vehicleInfo select 3); _control lbSetPicture [(lbSize _control)-1,(_vehicleInfo select 2)]; _control lbSetData [(lbSize _control)-1,_className]; _control lbSetValue [(lbSize _control)-1,_ForEachIndex]; }; } forEach _vehicleList; if (LIFE_SETTINGS(getNumber,"vehicleShop_3D") isEqualTo 1) then { [] call life_fnc_vehicleShopInit3DPreview; }; ((findDisplay 2300) displayCtrl 2302) lbSetCurSel 0;
-
@Rom ich danke dir für deine hilfe es geht jetzt...
muss nurnoch die skins und fahrzeuge richten weil die nicht angezeigt werden aber das ist ja ein kleines problem.
kümmere mich schnell drum -
@Reen36, du kannst testweise mal die Makros für EQUAL (fn_initAdac.sqf, Zeile 16) und SEL (fn_requestReceived.sqf, Zeile 89) entfernen:
in der fn_request sieht es jetzt dann so aus
Codecase east: { CONST(life_coplevel,0); if (LIFE_SETTINGS(getNumber,"save_playerStats") isEqualTo 1) then { life_hunger = ((_this select 9) select 0); life_thirst = ((_this select 9) select 1);
und un der initadac so:
Code
Alles anzeigenif ((FETCH_CONST(life_adaclevel)) < 1 && (FETCH_CONST(life_adminlevel) == 0)) exitWith { ["Notwhitelisted",FALSE,TRUE] call BIS_fnc_endMission; sleep 35; }; [] spawn { for "_i" from 0 to 1 step 0 do { waitUntil {sleep 3; currentWeapon player != ""}; removeAllWeapons player; }; };
werde es jetzt so mal testen
-
Code
Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_requestReceived.sqf Author: Bryan "Tonic" Boardwine Description: Called by the server saying that we have a response so let's sort through the information, validate it and if all valid set the client up. */ private ["_array"]; life_session_tries = life_session_tries + 1; if (life_session_completed) exitWith {}; //Why did this get executed when the client already initialized? arma... if (life_session_tries > 3) exitWith {cutText[localize "STR_Session_Error","BLACK FADED"]; 0 cutFadeOut 999999999;}; 0 cutText [localize "STR_Session_Received","BLACK FADED"]; 0 cutFadeOut 9999999; //Error handling and junk.. if (isNil "_this") exitWith {[] call SOCK_fnc_insertPlayerInfo;}; if (_this isEqualType "") exitWith {[] call SOCK_fnc_insertPlayerInfo;}; if (count _this isEqualTo 0) exitWith {[] call SOCK_fnc_insertPlayerInfo;}; if ((_this select 0) isEqualTo "Error") exitWith {[] call SOCK_fnc_insertPlayerInfo;}; if (!(getPlayerUID player isEqualTo (_this select 0))) exitWith {[] call SOCK_fnc_dataQuery;}; //Parse basic player information. CASH = parseNumber (_this select 2); BANK = parseNumber (_this select 3); CONST(life_adminlevel,parseNumber (_this select 4)); if (LIFE_SETTINGS(getNumber,"donor_level") isEqualTo 1) then { CONST(life_donorlevel,parseNumber (_this select 5)); } else { CONST(life_donorlevel,0); }; //Loop through licenses if (count (_this select 6) > 0) then { {missionNamespace setVariable [(_x select 0),(_x select 1)];} forEach (_this select 6); }; life_gear = _this select 8; [true] call life_fnc_loadGear; //Parse side specific information. switch (playerSide) do { case west: { CONST(life_coplevel, parseNumber(_this select 7)); CONST(life_medicLevel,0); life_blacklisted = _this select 9; if (LIFE_SETTINGS(getNumber,"save_playerStats") isEqualTo 1) then { life_hunger = ((_this select 10) select 0); life_thirst = ((_this select 10) select 1); player setDamage ((_this select 10) select 2); }; }; case civilian: { life_is_arrested = _this select 7; CONST(life_coplevel, 0); CONST(life_medicLevel, 0); life_houses = _this select 13; if (LIFE_SETTINGS(getNumber,"save_playerStats") isEqualTo 1) then { life_hunger = ((_this select 9) select 0); life_thirst = ((_this select 9) select 1); player setDamage ((_this select 9) select 2); }; //Position if (LIFE_SETTINGS(getNumber,"save_civilian_position") isEqualTo 1) then { life_is_alive = _this select 10; life_civ_position = _this select 11; if (life_is_alive) then { if (count life_civ_position != 3) then {diag_log format ["[requestReceived] Bad position received. Data: %1",life_civ_position];life_is_alive =false;}; if (life_civ_position distance (getMarkerPos "respawn_civilian") < 300) then {life_is_alive = false;}; }; }; { _house = nearestObject [(call compile format ["%1",(_x select 0)]), "House"]; life_vehicles pushBack _house; } forEach life_houses; life_gangData = _this select 14; if (!(count life_gangData isEqualTo 0)) then { [] spawn life_fnc_initGang; }; [] spawn life_fnc_initHouses; }; case independent: { CONST(life_medicLevel, parseNumber(_this select 7)); CONST(life_coplevel,0); if (LIFE_SETTINGS(getNumber,"save_playerStats") isEqualTo 1) then { life_hunger = ((_this select 9) select 0); life_thirst = ((_this select 9) select 1); player setDamage ((_this select 9) select 2); }; }; case east: { CONST(life_adaclevel, parseNumber(SEL(_this,7))); CONST(life_coplevel,0); if (LIFE_SETTINGS(getNumber,"save_playerStats") isEqualTo 1) then { life_hunger = ((_this select 9) select 0); life_thirst = ((_this select 9) select 1); }; }; }; if (count (_this select 15) > 0) then { {life_vehicles pushBack _x;} forEach (_this select 15); }; life_session_completed = true;
-
den fehler bekomme ich auch
CodeFile mpmissions\__CUR_MP.LakesideValley\core\session\fn_requestReceived.sqf, line 102 15:47:18 Error in expression <vel = compileFinal (if ( parseNumber(SEL(_this7)) isEqualType "") then { parseNu> 15:47:18 Error position: <(_this7)) isEqualType "") then { parseNu> 15:47:18 Error Fehlende )
hier meine fn_requestReceived -
Code
Alles anzeigen#include "..\script_macros.hpp" /* File: fn_initAdac.sqf Author: Bryan "Tonic" Boardwine Edit: Raptor772000 Description: Initializes the adac.. */ private["_end"]; player addRating 99999999; waitUntil {!(isNull (findDisplay 46))}; if((FETCH_CONST(life_adaclevel)) < 1 && (FETCH_CONST(life_adminlevel) == 0)) exitWith { ["Notwhitelisted",FALSE,TRUE] call BIS_fnc_endMission; sleep 35; }; if(EQUAL(LIFE_SETTINGS(getNumber,"allow_adac_weapons"),0)) then { [] spawn { for "_i" from 0 to 1 step 0 do { waitUntil {sleep 3; currentWeapon player != ""}; removeAllWeapons player; }; }; }; [] call life_fnc_spawnMenu; waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open. waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done. [] execVM "IgiLoad\IgiLoadInit.sqf"; //wenn ihr kein IgiLoad wollt, einfach mit 2 Strichen vor der Zeile ignorieren Bsp. //_igiload = execVM.......
hier
-
Hey, die Meldung ist fast selbsterklärend
Du willst in der Nichtvorhandenen Spalte "playerid" etwas abgleichen, ersetze hinter der WHERE-Klausel "playerid" mit "pid"damit bin ich ein schritt weiter
nur wenn ich jetzt als adac auf den server will sagt er mir nurnoch an server daten werden abgerufen aber er kommt nicht weiter.
bei den anderen fraktionen geht esdas hab ich den rpt log gefunden
-
jetzt bekomme ich diese fehlermeldung
CodeMySQL: [MySQL]: [Comment]: mysql_stmt_prepare error [mysql_stmt_error]: Unknown column 'playerid' in 'where clause' [mysql_stmt_errno]: 1054 [mysql_stmt_sqlstate]: 42S22 [statemnt]: SELECT pid, name, cash, bankacc, adminlevel, donorlevel, adac_licenses, adaclevel, adac_gear, adac_stats, playtime FROM players WHERE playerid='76561198015758561' [14:20:18:332 +02:00] [Thread 5196] extDB2: SQL_RAW_V2: Error StatementException: SQL: SELECT pid, name, cash, bankacc, adminlevel, donorlevel, adac_licenses, adaclevel, adac_gear, adac_stats, playtime FROM players WHERE playerid='76561198015758561'
-
ok hab es. hätte gleich mal die threads lesen sollen